X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a62943629fc45519becfbd66176c9238acbeacbd..c3be356ba81afff0a666355e018531de69e0a5fb:/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