File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ type Config struct {
2222 Templates string `long:"templates" env:"TEMPLATES" description:"Templates directory" default:".templates"`
2323 //
2424 InitialAdminPassword string `long:"initial-admin-password" env:"INITIAL_ADMIN_PASSWORD" description:"Initial admin password" default:"admin"`
25+ InitialChrootUser string `long:"initial-chroot-user" env:"INITIAL_CHROOT_USER" description:"Initial user for service" default:""`
2526 DisableChroot bool `long:"disable-chroot" env:"DISABLE_CHROOT" description:"Disable use different user for spawn"`
2627 Dev bool `long:"dev" env:"DEV" description:"Enabled dev mode (disables chroot)"`
2728 StatsCache uint `long:"stats-cache" env:"STATS_CACHE" description:"Maximum cache for stats" default:"8192"`
@@ -96,6 +97,7 @@ func run(ctx context.Context, config Config) error {
9697 go dumpTracker (ctx , config .StatsInterval , tracker )
9798
9899 var defCfg application.ProjectConfig
100+ defCfg .User = config .InitialChrootUser
99101
100102 if config .Dev {
101103 log .Println ("Warning! Development mode enabled" )
You can’t perform that action at this time.
0 commit comments