fix: setup (start admin first and ensure setup done) (#126)

* start admin first and ensure setup done

* enable login again

* log oidc client_id in setup

* more logs for setup
This commit is contained in:
Livio Amstutz
2020-05-25 08:21:58 +02:00
committed by GitHub
parent e318139b37
commit a6aba86b54
4 changed files with 59 additions and 21 deletions

View File

@@ -48,6 +48,9 @@ func main() {
logging.Log("MAIN-FaF2r").OnError(err).Fatal("cannot read config")
ctx := context.Background()
if *adminEnabled {
admin.Start(ctx, conf.Admin, conf.AuthZ, conf.SystemDefaults)
}
if *managementEnabled {
management.Start(ctx, conf.Mgmt, conf.AuthZ, conf.SystemDefaults)
}
@@ -58,9 +61,6 @@ func main() {
err = login.Start(ctx, conf.Login)
logging.Log("MAIN-53RF2").OnError(err).Fatal("error starting login ui")
}
if *adminEnabled {
admin.Start(ctx, conf.Admin, conf.AuthZ, conf.SystemDefaults)
}
if *notificationEnabled {
notification.Start(ctx, conf.Notification, conf.SystemDefaults)
}