X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3e4754febddcf8966c9a80f04d726a201acfda26..2cbc9d8f12ae6c7e9345053fa75d136041872932:/utils/update.php 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