1
0
mirror of https://github.com/rancher/os.git synced 2025-07-20 01:49:04 +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
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677

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()
} }