X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7d192ace6d0b6a9675af985dcf237f8ecc8ebd06..64f7b13888fbe455632f7ad981f8f04d68701671:/utils/update.php diff --git a/utils/update.php b/utils/update.php index 3086a70b..3ef12cfb 100644 --- a/utils/update.php +++ b/utils/update.php @@ -305,6 +305,8 @@ if ($aResult['index']) { } runWithEnv($sCmd, $aProcEnv); + + $oDB->query('update import_status set indexed = true'); } if ($aResult['update-address-levels']) { @@ -443,6 +445,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;