Config: Refactor initialization of settings and database connection

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-07-07 17:00:38 +02:00
parent e2a7e50ca4
commit 22aa700b1e
28 changed files with 727 additions and 562 deletions

View File

@@ -83,7 +83,6 @@ func backupAction(ctx *cli.Context) error {
return err
}
conf.RegisterDb()
defer conf.Shutdown()
if backupDatabase {