#!/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}" rm -f "$PLANETPREV" pyosmium-up-to-date -vvv -o "$PLANETNEW" "$PLANETCURR" retval=$? while [ $retval -eq 1 ]; do mv "$PLANETCURR" "$PLANETPREV" rm -f "$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" rm -f "$PLANETPREV" mv "$PLANETNEW" "$PLANETCURR"