X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/abd294912abf844d054d5786dd80b7f1a2170a4d..65c89194fccef562c544c05dbcef0d9e6ad16a0d:/utils/update.php?ds=inline diff --git a/utils/update.php b/utils/update.php index 7cf96d90..8e118834 100644 --- a/utils/update.php +++ b/utils/update.php @@ -306,6 +306,8 @@ if ($aResult['index']) { } runWithEnv($sCmd, $aProcEnv); + + $oDB->query('update import_status set indexed = true'); } if ($aResult['update-address-levels']) { @@ -444,6 +446,11 @@ if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) { $sSQL = 'update import_status set indexed = true'; $oDB->query($sSQL); + } else { + if ($aResult['import-osmosis-all']) { + echo "Error: --no-index cannot be used with continuous imports (--import-osmosis-all).\n"; + exit(1); + } } $fDuration = time() - $fStartTime;