Skip to content

Commit d8ee36e

Browse files
committed
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 <[email protected]>
1 parent 35b0c8a commit d8ee36e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/setting/setting.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,3 +1179,8 @@ func NewServices() {
11791179
newProject()
11801180
newMimeTypeMap()
11811181
}
1182+
1183+
func NewServicesForInstall() {
1184+
newService()
1185+
newMailService()
1186+
}

routers/init.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func PreInstallInit(ctx context.Context) bool {
100100
log.Info("SQLite3 Supported")
101101
}
102102
setting.InitDBConfig()
103+
setting.NewServicesForInstall()
103104
svg.Init()
104105
}
105106

0 commit comments

Comments
 (0)