mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -42,6 +42,7 @@ func cleanUpAction(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
conf.InitDb()
|
||||
defer conf.Shutdown()
|
||||
|
||||
if conf.ReadOnly() {
|
||||
log.Infof("config: read-only mode enabled")
|
||||
@@ -60,7 +61,5 @@ func cleanUpAction(ctx *cli.Context) error {
|
||||
log.Infof("removed %s in %s", english.Plural(total, "file", "files"), time.Since(cleanupStart))
|
||||
}
|
||||
|
||||
conf.Shutdown()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user