fix: ks-account abnormal restart

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-04-16 15:31:37 +08:00
committed by zryfish
parent 5c8a087a9c
commit dd963c0be4
40 changed files with 394 additions and 314 deletions

View File

@@ -67,6 +67,8 @@ func Run(s *options.ServerRunOptions) error {
return err
}
waitForResourceSync()
err = iam.Init(s.AdminEmail, s.AdminPassword, expireTime)
jwtutil.Setup(s.JWTSecret)
@@ -74,8 +76,6 @@ func Run(s *options.ServerRunOptions) error {
return err
}
waitForResourceSync()
container := runtime.Container
container.Filter(filter.Logging)