1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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

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

NewContext does not set the mailer or service settings so add
a new function that will run this.

Fix #15894

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath
2021-06-17 00:32:57 +01:00
committed by GitHub
parent 0e081ff0ce
commit 1ec9e906dc
2 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ func PreloadSettings(ctx context.Context) bool {
log.Info("SQLite3 Supported")
}
setting.InitDBConfig()
setting.NewServicesForInstall()
svg.Init()
}