always register the installer hooks in case the superuser is created by a console command

This commit is contained in:
Gani Georgiev committed 2024-11-06 14:23:16 +02:00
1 parent f38700982c
commit e4cd6810ab
3 files changed
+48 -40

No files matched your search

+6 -1
View File
@@ -270,7 +270,12 @@ func Serve(app core.App, config ServeConfig) error {
regular.Printf("└─ Dashboard: %s\n", color.CyanString("%s/_/", fullAddr))
}
go loadInstaller(app, fullAddr)
go func() {
installerErr := loadInstaller(app, fullAddr)
if installerErr != nil {
app.Logger().Warn("Failed to initialize installer", "error", installerErr)
}
}()
var serveErr error
if config.HttpsAddr != "" {