🔨 Add scripting.activateOnCreation helm value

This commit is contained in:
tiptophelmet 2025-04-23 20:39:24 +03:00
parent df1628e1a4
commit 30c9ddd93e
2 changed files with 8 additions and 6 deletions

View File

@ -12,12 +12,13 @@ import (
)
type ScriptingConfig struct {
Env map[string]interface{} `yaml:"env" json:"env" default:"{}"`
Source string `yaml:"source" json:"source" default:""`
Sources []string `yaml:"sources" json:"sources" default:"[]"`
WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"`
Active []string `yaml:"active" json:"active" default:"[]"`
Console bool `yaml:"console" json:"console" default:"true"`
Env map[string]interface{} `yaml:"env" json:"env" default:"{}"`
Source string `yaml:"source" json:"source" default:""`
Sources []string `yaml:"sources" json:"sources" default:"[]"`
WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"`
Active []string `yaml:"active" json:"active" default:"[]"`
ActivateOnCreation bool `yaml:"activateOnCreation" json:"activateOnCreation" default:"true"`
Console bool `yaml:"console" json:"console" default:"true"`
}
func (config *ScriptingConfig) GetScripts() (scripts []*misc.Script, err error) {

View File

@ -258,6 +258,7 @@ scripting:
sources: []
watchScripts: true
active: []
activateOnCreation: true
console: true
timezone: ""
logLevel: warning