mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +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')))
|
(new \Nominatim\Shell(getSetting('NOMINATIM_TOOL')))
|
||||||
->addParams('admin', '--check-database')
|
->addParams('admin', '--check-database')
|
||||||
->run();
|
->run();
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ def check_database(config):
|
|||||||
if ret == CheckState.FATAL:
|
if ret == CheckState.FATAL:
|
||||||
conn.close()
|
conn.close()
|
||||||
return 1
|
return 1
|
||||||
if ret != CheckState.OK:
|
if ret in (CheckState.FATAL, CheckState.FAIL):
|
||||||
overall_result = 1
|
overall_result = 1
|
||||||
|
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user