certmanager updates

This commit is contained in:
Олег Бородин
2024-08-12 17:41:49 +02:00
parent 21d64fd482
commit 6a3290b9ac
19 changed files with 257 additions and 18 deletions

View File

@@ -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