X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/868caeaf1b9572ed0c1fc3b6728ce294e940d5e5..9a3bc9cc1e00ffb0e376fe1dd4eda872f967066b:/utils/update.php?ds=sidebyside diff --git a/utils/update.php b/utils/update.php index d643e4bc..cd907d75 100755 --- a/utils/update.php +++ b/utils/update.php @@ -56,7 +56,7 @@ if ($iCacheMemory + 500 > getTotalMemoryMB()) { echo "WARNING: resetting cache memory to $iCacheMemory\n"; } $sOsm2pgsqlCmd = CONST_Osm2pgsql_Binary.' -klas --number-processes 1 -C '.$iCacheMemory.' -O gazetteer -d '.$aDSNInfo['database'].' -P '.$aDSNInfo['port']; -if (!is_null(CONST_Osm2pgsql_Flatnode_File)) { +if (!is_null(CONST_Osm2pgsql_Flatnode_File) && CONST_Osm2pgsql_Flatnode_File) { $sOsm2pgsqlCmd .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File; }