run as user
This commit is contained in:
parent
ad1ae2a6a1
commit
50cebb950d
11 changed files with 59 additions and 38 deletions
|
|
@ -42,7 +42,7 @@ func (a *Agent) InstallChoco() {
|
|||
return
|
||||
}
|
||||
|
||||
_, _, exitcode, err := a.RunScript(string(r.Body()), "powershell", []string{}, 900)
|
||||
_, _, exitcode, err := a.RunScript(string(r.Body()), "powershell", []string{}, 900, false)
|
||||
if err != nil {
|
||||
a.Logger.Debugln(err)
|
||||
a.rClient.R().SetBody(result).Post(url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue