X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..fbd1e8f60e9535b88f46f0b33b49e85f7787b962:/cookbooks/planet/templates/default/planet-update.erb 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"