X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6d8ce9d633757a4dc2fda1c52b36324696d06721..330b3f748baa6e05229a174415965a065e2f7f0c:/cookbooks/planet/templates/default/planet-update-file.erb diff --git a/cookbooks/planet/templates/default/planet-update-file.erb b/cookbooks/planet/templates/default/planet-update-file.erb index 16c7fed17..73a778bba 100644 --- a/cookbooks/planet/templates/default/planet-update-file.erb +++ b/cookbooks/planet/templates/default/planet-update-file.erb @@ -10,16 +10,15 @@ PLANETDIR="/var/lib/planet" PLANETPREV="${PLANETDIR}/planet-previous.${SUFFIX}" PLANETCURR="${PLANETDIR}/planet.${SUFFIX}" PLANETNEW="${PLANETDIR}/planet-new.${SUFFIX}" -PLANETTMP="${PLANETDIR}/planet-tmp.${SUFFIX}" pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" retval=$? while [ $retval -eq 1 ]; do - mv "$PLANETNEW" "$PLANETTMP" - pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETTMP" + mv "$PLANETCURR" "$PLANETPREV" + mv "$PLANETNEW" "$PLANETCURR" + pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" retval=$? - rm "$PLANETTMP" done if [ $retval -ne 0 ]; then