mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
[REV] Update chaos set user rain with root permission
This commit is contained in:
parent
0a5282913e
commit
1116dcb75a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user