aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-06-17 00:32:57 +0100
committerGitHub <noreply@github.com>2021-06-16 19:32:57 -0400
commit1ec9e906dc905c3d0aacb14e6c8077032dc6a484 (patch)
tree82bd1edbb80d4223a7d417243627e595c4f1fc32 /routers/install
parent0e081ff0ce61227d5f34f1d7f8213d9f407f1f3d (diff)
downloadgitea-1ec9e906dc905c3d0aacb14e6c8077032dc6a484.tar.gz
gitea-1ec9e906dc905c3d0aacb14e6c8077032dc6a484.zip
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>
Diffstat (limited to 'routers/install')
-rw-r--r--routers/install/setting.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/install/setting.go b/routers/install/setting.go
index 50bb6aa355..53d166ba1d 100644
--- a/routers/install/setting.go
+++ b/routers/install/setting.go
@@ -28,6 +28,7 @@ func PreloadSettings(ctx context.Context) bool {
log.Info("SQLite3 Supported")
}
setting.InitDBConfig()
+ setting.NewServicesForInstall()
svg.Init()
}