X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2979c396288f58957a732755aa5b7fe0ab9d3abc..2cbc9d8f12ae6c7e9345053fa75d136041872932:/utils/update.php?ds=sidebyside diff --git a/utils/update.php b/utils/update.php index 033c3019..2fa773fe 100644 --- a/utils/update.php +++ b/utils/update.php @@ -49,6 +49,7 @@ $aCMDOptions getCmdOpt($_SERVER['argv'], $aCMDOptions, $aResult, true, true); if (!isset($aResult['index-instances'])) $aResult['index-instances'] = 1; + if (!isset($aResult['index-rank'])) $aResult['index-rank'] = 0; date_default_timezone_set('Etc/UTC'); @@ -82,6 +83,12 @@ if (!is_null(CONST_Osm2pgsql_Flatnode_File) && CONST_Osm2pgsql_Flatnode_File) { } $sIndexCmd = CONST_BasePath.'/nominatim/nominatim.py'; +if (!$aResult['quiet']) { + $sIndexCmd .= ' -v'; +} +if ($aResult['verbose']) { + $sIndexCmd .= ' -v'; +} if ($aResult['init-updates']) { // sanity check that the replication URL is correct