[REV] Update chaos set user rain with root permission

This commit is contained in:
pujielan 2018-01-05 10:54:27 +08:00
parent 0a5282913e
commit 1116dcb75a

View File

@ -162,7 +162,7 @@ func clone(gitURL string, sourceDir string, logger event.Logger, repo string) er
return err
}
}
logrus.Debugf("pull: %s", fmt.Sprintf("cd %s & sudo -P git pull", sourceDir))
logrus.Debugf("pull: %s", fmt.Sprintf("cd %s && sudo -P git pull", sourceDir))
mm := []string{"-P", "cd", sourceDir, "&", "sudo", "-P", "git", "pull"}
if err := ShowExec("sudo", mm, logger); err != nil {
return err