mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -40,6 +40,7 @@ func optimizeAction(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
conf.InitDb()
|
||||
defer conf.Shutdown()
|
||||
|
||||
if conf.ReadOnly() {
|
||||
log.Infof("config: read-only mode enabled")
|
||||
@@ -64,7 +65,5 @@ func optimizeAction(ctx *cli.Context) error {
|
||||
log.Infof("completed in %s", elapsed)
|
||||
}
|
||||
|
||||
conf.Shutdown()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user