add env to scripts
This commit is contained in:
parent
9565fea27c
commit
6ac14b6d64
6 changed files with 17 additions and 9 deletions
|
|
@ -141,9 +141,10 @@ type AssignedTask struct {
|
|||
}
|
||||
|
||||
type Script struct {
|
||||
Shell string `json:"shell"`
|
||||
Code string `json:"code"`
|
||||
RunAsUser bool `json:"run_as_user"`
|
||||
Shell string `json:"shell"`
|
||||
Code string `json:"code"`
|
||||
RunAsUser bool `json:"run_as_user"`
|
||||
Env []string `json:"env"`
|
||||
}
|
||||
|
||||
type CheckInfo struct {
|
||||
|
|
@ -190,6 +191,7 @@ type TaskAction struct {
|
|||
Args []string `json:"script_args"`
|
||||
Timeout int `json:"timeout"`
|
||||
RunAsUser bool `json:"run_as_user"`
|
||||
Env []string `json:"env"`
|
||||
}
|
||||
|
||||
type AutomatedTask struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue