mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-17 10:02:30 +00:00
Merge af3ceffdac
into 1b13355196
This commit is contained in:
commit
b3af194a33
5 changed files with 47 additions and 0 deletions
|
@ -587,6 +587,9 @@ func handleHook(h *hook.Hook, r *hook.Request) (string, error) {
|
|||
}
|
||||
|
||||
cmd := exec.Command(cmdPath)
|
||||
if h.RunAs != "" {
|
||||
setUser(cmd, h.RunAs)
|
||||
}
|
||||
cmd.Dir = h.CommandWorkingDirectory
|
||||
|
||||
cmd.Args, errors = h.ExtractCommandArguments(r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue