X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/388687b7120815bc61f49de6c5dd0ea793dad67b..1bc290ecce828f4a28d096c383815d2aa9199253:/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 36786e232..16c7fed17 100644 --- a/cookbooks/planet/templates/default/planet-update-file.erb +++ b/cookbooks/planet/templates/default/planet-update-file.erb @@ -4,18 +4,20 @@ # setup +SUFFIX="osh.pbf" + PLANETDIR="/var/lib/planet" -PLANETPREV="${PLANETDIR}/planet-previous.pbf" -PLANETCURR="${PLANETDIR}/planet.pbf" -PLANETNEW="${PLANETDIR}/planet-new.pbf" -PLANETTMP="${PLANETDIR}/planet-tmp.pbf" +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" + pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETTMP" retval=$? rm "$PLANETTMP" done