Added paths to cmd runner
This commit is contained in:
parent
0fa444ae74
commit
e68d030d38
1
main.go
1
main.go
|
@ -164,6 +164,7 @@ func runCmd(log go_log.Log, workDir string, cmdStr string, uid int, gid int) (in
|
|||
|
||||
cmd.Env = append(cmd.Env, "USER="+user.Username)
|
||||
cmd.Env = append(cmd.Env, "HOME="+user.HomeDir)
|
||||
cmd.Env = append(cmd.Env, "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")
|
||||
|
||||
// Create a pipes to capture the command's output
|
||||
stdoutPipe, err := cmd.StdoutPipe()
|
||||
|
|
Loading…
Reference in New Issue
Block a user