3 # DO NOT EDIT - This file is being maintained by Chef
7 PLANETDIR="<%= @directory %>/planet"
8 LOGDIR="${PLANETDIR}/log"
9 PLANETPREV="${PLANETDIR}/planet-previous.pbf"
10 PLANETCURR="${PLANETDIR}/planet.pbf"
11 PLANETNEW="${PLANETDIR}/planet-new.pbf"
15 exec > "${LOGDIR}/$(date +%Y%m%d-%H%M).log" 2>&1
18 while [ $retval -eq 1 ]; do
19 pyosmium-up-to-date -o $PLANETNEW $PLANETCURR
23 if [ $retval -ne 0 ]; then
29 mv "$PLANETCURR" "$PLANETPREV"
30 mv "$PLANETNEW" "$PLANETCURR"
34 find "${LOGDIR}" -mtime +28 -delete