mirror of
https://github.com/rancher/os.git
synced 2025-07-19 17:39:04 +00:00
Fix typo and set output for start scripts
This commit is contained in:
parent
73d0790e30
commit
3b68017af5
@ -283,7 +283,7 @@ func setupSSH(cfg *config.CloudConfig) error {
|
||||
}
|
||||
|
||||
func runScript(path string) error {
|
||||
if !util.ExistsAndExecutable(config.CloudConfigScriptFile) {
|
||||
if !util.ExistsAndExecutable(path) {
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -302,5 +302,8 @@ func runScript(path string) error {
|
||||
cmd = exec.Command(path)
|
||||
}
|
||||
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
return cmd.Run()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user