]> git.openstreetmap.org Git - nominatim.git/commitdiff
re-run osmosis also on return codes other than 1
authorFrederik Ramm <frederik@remote.org>
Fri, 30 Aug 2013 08:42:21 +0000 (10:42 +0200)
committerFrederik Ramm <frederik@remote.org>
Fri, 30 Aug 2013 08:42:21 +0000 (10:42 +0200)
utils/update.php

index d38de598433d665b14a14217151d55dadea83a16..dfd533fd696adddc6a44bc652a969143f36c0200 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);