From: Frederik Ramm Date: Fri, 30 Aug 2013 08:42:21 +0000 (+0200) Subject: re-run osmosis also on return codes other than 1 X-Git-Tag: v2.2.0~35^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/b8d437139579f651b532b6f6e39fda76f9cc78ff re-run osmosis also on return codes other than 1 --- diff --git a/utils/update.php b/utils/update.php index d38de598..dfd533fd 100755 --- a/utils/update.php +++ b/utils/update.php @@ -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);