]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/update.php
Merge branch 'osmosis_error_return' of https://github.com/woodpeck/Nominatim
[nominatim.git] / utils / update.php
index d1ded5adb203df0d7031210b241322fac5185d8d..0e26b31152d1d3445ae233defb094b3d25bd524f 100755 (executable)
 
                                                unset($aReplicationLag);
                                                exec($sCMDCheckReplicationLag, $aReplicationLag, $iErrorLevel); 
-                                               while ($iErrorLevel == 1 || $aReplicationLag[0] < 1)
+                                               while ($iErrorLevel > 0 || $aReplicationLag[0] < 1)
                                                {
                                                        if ($iErrorLevel)
                                                        {
                                        $fCMDStartTime = time();
                                        echo $sCMDDownload."\n";
                                        exec($sCMDDownload, $sJunk, $iErrorLevel);
-                                       while ($iErrorLevel == 1)
+                                       while ($iErrorLevel > 0)
                                        {
                                                echo "Error: $iErrorLevel\n";
                                                sleep(60);