forked from mirrors/nixpkgs
15 lines
401 B
Diff
15 lines
401 B
Diff
|
diff --git a/cps/__init__.py b/cps/__init__.py
|
||
|
index 627cca0b..233bb2dd 100644
|
||
|
--- a/cps/__init__.py
|
||
|
+++ b/cps/__init__.py
|
||
|
@@ -87,6 +87,9 @@ db.CalibreDB.setup_db(config, cli.settingspath)
|
||
|
|
||
|
calibre_db = db.CalibreDB()
|
||
|
|
||
|
+if os.environ.get('__RUN_MIGRATIONS_AND_EXIT'):
|
||
|
+ sys.exit(0)
|
||
|
+
|
||
|
def create_app():
|
||
|
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
||
|
# For python2 convert path to unicode
|