Skip to content

Commit

Permalink
Correct uses of #!/bin/bash in linux postinstall scripts (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwass authored Feb 22, 2018
1 parent 5e22ea9 commit acc7942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/packaging/packaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func CreateLinuxPackages(osqueryVersion, hostname, secret string, insecure, inse

if systemd {
initFileName := "launcher.service"
postInstallLauncherContents := `#/bin/bash
postInstallLauncherContents := `#!/bin/bash
set -e
systemctl daemon-reload
systemctl enable launcher
Expand All @@ -171,7 +171,7 @@ systemctl restart launcher`
} else { //not systemd, so assume init
initFileName := "launcher"
// The post install step
postInstallLauncherContents := `#/bin/bash
postInstallLauncherContents := `#!/bin/bash
sudo service launcher restart`
createInitFiles(opts, serviceDirectory, initFileName, packageRoot, binaryDirectory, postInstallScript, postInstallLauncherContents, systemd)
}
Expand Down

0 comments on commit acc7942

Please sign in to comment.