Added paths to cmd runner

This commit is contained in:
Lilleman auf Larv 2024-02-03 10:44:18 +01:00
parent 0fa444ae74
commit e68d030d38

View File

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