evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ca / calibre-web / db-migrations.patch
blob2e865db68da3f0428ad20ce544288987fdf2d859
1 diff --git a/cps/__init__.py b/cps/__init__.py
2 index 1ba1f778..fd5dc2f1 100644
3 --- a/cps/__init__.py
4 +++ b/cps/__init__.py
5 @@ -116,6 +116,9 @@ def create_app():
6 db.CalibreDB.setup_db(config.config_calibre_dir, cli_param.settings_path)
7 calibre_db.init_db()
9 + if os.environ.get('__RUN_MIGRATIONS_AND_EXIT'):
10 + sys.exit(0)
12 updater_thread.init_updater(config, web_server)
13 # Perform dry run of updater and exit afterwards
14 if cli_param.dry_run: