Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure settings for Service and Mailer are read on the install page #15943

Merged
6 changes: 6 additions & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,3 +1180,9 @@ func NewServices() {
newProject()
newMimeTypeMap()
}

// NewServicesForInstall initializes the services for install
func NewServicesForInstall() {
newService()
newMailService()
}
1 change: 1 addition & 0 deletions routers/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func PreInstallInit(ctx context.Context) bool {
log.Info("SQLite3 Supported")
}
setting.InitDBConfig()
setting.NewServicesForInstall()
svg.Init()
}

Expand Down