diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 6e05df1ad9..d26c054cd7 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -1190,3 +1190,9 @@ func NewServices() { newProject() newMimeTypeMap() } + +// NewServicesForInstall initializes the services for install +func NewServicesForInstall() { + newService() + newMailService() +} 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() }