run as user
This commit is contained in:
parent
ad1ae2a6a1
commit
50cebb950d
11 changed files with 59 additions and 38 deletions
|
|
@ -141,8 +141,9 @@ type AssignedTask struct {
|
|||
}
|
||||
|
||||
type Script struct {
|
||||
Shell string `json:"shell"`
|
||||
Code string `json:"code"`
|
||||
Shell string `json:"shell"`
|
||||
Code string `json:"code"`
|
||||
RunAsUser bool `json:"run_as_user"`
|
||||
}
|
||||
|
||||
type CheckInfo struct {
|
||||
|
|
@ -188,6 +189,7 @@ type TaskAction struct {
|
|||
Code string `json:"code"`
|
||||
Args []string `json:"script_args"`
|
||||
Timeout int `json:"timeout"`
|
||||
RunAsUser bool `json:"run_as_user"`
|
||||
}
|
||||
|
||||
type AutomatedTask struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue