certmanager updates
This commit is contained in:
@@ -158,14 +158,15 @@ func (srv *Server) Run() error {
|
||||
}
|
||||
srv.log.Infof("Running server as user %s", currUser.Username)
|
||||
|
||||
ctx, _ := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
|
||||
// Initialize database
|
||||
err = srv.db.InitDatabase()
|
||||
err = srv.db.InitDatabase(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Seed accounts
|
||||
ctx, _ := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
_, err = srv.lg.SeedAccount(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user