]> git.openstreetmap.org Git - nominatim.git/commitdiff
Sanity check on download.geofabrik.de update interval
authorBrian Quinion <brian.quinion@mapquest.com>
Thu, 19 Sep 2013 11:22:29 +0000 (12:22 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Thu, 19 Sep 2013 11:22:36 +0000 (12:22 +0100)
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';