X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/34bf648b52e167893b2a456d65ab714e06902248..9cb89866d2aea9415aaebc184a5ffd5c467899d5:/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 deleted file mode 100644 index 73a778bba..000000000 --- a/cookbooks/planet/templates/default/planet-update-file.erb +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -# DO NOT EDIT - This file is being maintained by Chef - -# setup - -SUFFIX="osh.pbf" - -PLANETDIR="/var/lib/planet" -PLANETPREV="${PLANETDIR}/planet-previous.${SUFFIX}" -PLANETCURR="${PLANETDIR}/planet.${SUFFIX}" -PLANETNEW="${PLANETDIR}/planet-new.${SUFFIX}" - -pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" -retval=$? - -while [ $retval -eq 1 ]; do - mv "$PLANETCURR" "$PLANETPREV" - mv "$PLANETNEW" "$PLANETCURR" - pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" - retval=$? -done - -if [ $retval -ne 0 ]; then - exit $retval -fi - -# cleanup - -mv "$PLANETCURR" "$PLANETPREV" -mv "$PLANETNEW" "$PLANETCURR"