X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6095a92a4ae80c3bad5c61ca87a747ab888cd689..0213643ebcba068561691bfbe366fed075d0d3d1:/utils/update.php diff --git a/utils/update.php b/utils/update.php index f82696c2..febe0682 100755 --- a/utils/update.php +++ b/utils/update.php @@ -102,7 +102,7 @@ $sNextFile = $aResult['import-diff']; if (!file_exists($sNextFile)) { - echo "Cannot open $nextFile\n"; + echo "Cannot open $sNextFile\n"; exit; } // Don't update the import status - we don't know what this file contains @@ -391,7 +391,7 @@ unset($aReplicationLag); exec($sCMDCheckReplicationLag, $aReplicationLag, $iErrorLevel); - while ($iErrorLevel == 1 || $aReplicationLag[0] < 1) + while ($iErrorLevel > 0 || $aReplicationLag[0] < 1) { if ($iErrorLevel) { @@ -412,7 +412,7 @@ $fCMDStartTime = time(); echo $sCMDDownload."\n"; exec($sCMDDownload, $sJunk, $iErrorLevel); - while ($iErrorLevel == 1) + while ($iErrorLevel > 0) { echo "Error: $iErrorLevel\n"; sleep(60);