fix return code for check database run with 'not applicable'

This commit is contained in:
Sarah Hoffmann
2021-02-19 18:32:00 +01:00
parent f08078ccca
commit 4b32cbe518
2 changed files with 1 additions and 2 deletions

View File

@@ -8,4 +8,3 @@ loadSettings(getcwd());
(new \Nominatim\Shell(getSetting('NOMINATIM_TOOL')))
->addParams('admin', '--check-database')
->run();

View File

@@ -70,7 +70,7 @@ def check_database(config):
if ret == CheckState.FATAL:
conn.close()
return 1
if ret != CheckState.OK:
if ret in (CheckState.FATAL, CheckState.FAIL):
overall_result = 1
conn.close()