mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 02:47:59 +00:00
fix return code for check database run with 'not applicable'
This commit is contained in:
@@ -8,4 +8,3 @@ loadSettings(getcwd());
|
||||
(new \Nominatim\Shell(getSetting('NOMINATIM_TOOL')))
|
||||
->addParams('admin', '--check-database')
|
||||
->run();
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user