mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user