From 4e67940ae1845df392397f0b604da4f222bef213 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 1 May 2023 15:41:57 -0400 Subject: [PATCH] fix(cmd): conflicting initial admin user --- cmd/soft/migrate_config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/soft/migrate_config.go b/cmd/soft/migrate_config.go index 888c722aa..6624da972 100644 --- a/cmd/soft/migrate_config.go +++ b/cmd/soft/migrate_config.go @@ -44,6 +44,9 @@ var ( return fmt.Errorf("failed to create sqlite backend: %w", err) } + // FIXME: Admin user gets created when the database is created. + sb.DeleteUser("admin") // nolint: errcheck + cfg = cfg.WithBackend(sb) // Set SSH listen address