Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -1182,3 +1182,9 @@ func NewServices() {
newProject()
newMimeTypeMap()
}

// NewServicesForInstall initializes the services for install
func NewServicesForInstall() {
newService()
newMailService()
}
1 change: 1 addition & 0 deletions routers/install/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func PreloadSettings(ctx context.Context) bool {
log.Info("SQLite3 Supported")
}
setting.InitDBConfig()
setting.NewServicesForInstall()
svg.Init()
}

Expand Down