X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..44166d054d076ce26743c466ce002d7bc2e3c4dd:/cookbooks/planet/templates/default/planet-update.erb?ds=sidebyside diff --git a/cookbooks/planet/templates/default/planet-update.erb b/cookbooks/planet/templates/default/planet-update.erb index 73a778bba..fbfc6592f 100644 --- a/cookbooks/planet/templates/default/planet-update.erb +++ b/cookbooks/planet/templates/default/planet-update.erb @@ -11,11 +11,14 @@ PLANETPREV="${PLANETDIR}/planet-previous.${SUFFIX}" PLANETCURR="${PLANETDIR}/planet.${SUFFIX}" PLANETNEW="${PLANETDIR}/planet-new.${SUFFIX}" +rm -f "$PLANETPREV" + pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" retval=$? while [ $retval -eq 1 ]; do mv "$PLANETCURR" "$PLANETPREV" + rm -f "$PLANETPREV" mv "$PLANETNEW" "$PLANETCURR" pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" retval=$? @@ -28,4 +31,5 @@ fi # cleanup mv "$PLANETCURR" "$PLANETPREV" +rm -f "$PLANETPREV" mv "$PLANETNEW" "$PLANETCURR"