]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/update.php
Sanity check on download.geofabrik.de update interval
[nominatim.git] / utils / update.php
index 93b5ab0919db374dab7da461f830c19d451985bc..fd6acdbbfd69d0497655cb7d1bd240c379ade4fa 100755 (executable)
 
        if ($aResult['import-osmosis'] || $aResult['import-osmosis-all'])
        {
+
+               if (strpos(CONST_Replication_Url, 'download.geofabrik.de') !== false && CONST_Replication_Update_Interval < 86400) {
+                       echo "Error: Update interval too low for download.geofabrik.de.  Please check install documentation (http://wiki.openstreetmap.org/wiki/Nominatim/Installation#Updates)\n";
+                       exit;
+               }
+exit;
+
                $sImportFile = CONST_BasePath.'/data/osmosischange.osc';
                $sOsmosisCMD = CONST_Osmosis_Binary;
                $sOsmosisConfigDirectory = CONST_BasePath.'/settings';