add env to scripts
This commit is contained in:
parent
9565fea27c
commit
6ac14b6d64
6 changed files with 17 additions and 9 deletions
|
|
@ -59,7 +59,7 @@ func (a *Agent) RunTask(id int) error {
|
|||
|
||||
action_start := time.Now()
|
||||
if action.ActionType == "script" {
|
||||
stdout, stderr, retcode, err := a.RunScript(action.Code, action.Shell, action.Args, action.Timeout, action.RunAsUser)
|
||||
stdout, stderr, retcode, err := a.RunScript(action.Code, action.Shell, action.Args, action.Timeout, action.RunAsUser, action.Env)
|
||||
|
||||
if err != nil {
|
||||
a.Logger.Debugln(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue