* 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>
newProject()
newMimeTypeMap()
}
+
+// NewServicesForInstall initializes the services for install
+func NewServicesForInstall() {
+ newService()
+ newMailService()
+}
log.Info("SQLite3 Supported")
}
setting.InitDBConfig()
+ setting.NewServicesForInstall()
svg.Init()
}