From: Brian Quinion Date: Thu, 19 Sep 2013 11:22:29 +0000 (+0100) Subject: Sanity check on download.geofabrik.de update interval X-Git-Tag: v2.2.0~20 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/120d866e3e0afa2de041e60b79d622dc9f7a8cb7 Sanity check on download.geofabrik.de update interval --- diff --git a/utils/update.php b/utils/update.php index 93b5ab09..fd6acdbb 100755 --- a/utils/update.php +++ b/utils/update.php @@ -365,6 +365,13 @@ 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';