X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a62943629fc45519becfbd66176c9238acbeacbd..10ab14a11f21528e0e50ee33d0cdd983c8db000c:/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 4b067e640..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 -v -o "$PLANETNEW" "$PLANETCURR" +pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" retval=$? while [ $retval -eq 1 ]; do - mv "$PLANETNEW" "$PLANETTMP" - pyosmium-up-to-date -v -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