2021-04-05 15:23:46 +00:00
|
|
|
diff --git a/cps/__init__.py b/cps/__init__.py
|
2022-10-21 18:38:19 +00:00
|
|
|
index 1ba1f778..fd5dc2f1 100644
|
2021-04-05 15:23:46 +00:00
|
|
|
--- a/cps/__init__.py
|
|
|
|
+++ b/cps/__init__.py
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -116,6 +116,9 @@ def create_app():
|
|
|
|
db.CalibreDB.setup_db(config.config_calibre_dir, cli_param.settings_path)
|
|
|
|
calibre_db.init_db()
|
|
|
|
|
|
|
|
+ if os.environ.get('__RUN_MIGRATIONS_AND_EXIT'):
|
|
|
|
+ sys.exit(0)
|
2021-04-05 15:23:46 +00:00
|
|
|
+
|
2022-10-21 18:38:19 +00:00
|
|
|
updater_thread.init_updater(config, web_server)
|
|
|
|
# Perform dry run of updater and exit afterwards
|
|
|
|
if cli_param.dry_run:
|