1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 16:52:20 +00:00

Fix typo and set output for start scripts

This commit is contained in:
Josh Curl
2016-09-01 17:05:24 -07:00
parent 73d0790e30
commit 3b68017af5

View File

@@ -283,7 +283,7 @@ func setupSSH(cfg *config.CloudConfig) error {
} }
func runScript(path string) error { func runScript(path string) error {
if !util.ExistsAndExecutable(config.CloudConfigScriptFile) { if !util.ExistsAndExecutable(path) {
return nil return nil
} }
@@ -302,5 +302,8 @@ func runScript(path string) error {
cmd = exec.Command(path) cmd = exec.Command(path)
} }
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run() return cmd.Run()
} }