3 # DO NOT EDIT - This file is being maintained by Chef
7 PLANETDIR="/var/lib/planet"
8 PLANETPREV="${PLANETDIR}/planet-previous.pbf"
9 PLANETCURR="${PLANETDIR}/planet.pbf"
10 PLANETNEW="${PLANETDIR}/planet-new.pbf"
11 PLANETTMP="${PLANETDIR}/planet-tmp.pbf"
13 pyosmium-up-to-date -v -o "$PLANETNEW" "$PLANETCURR"
16 while [ $retval -eq 1 ]; do
17 mv "$PLANETNEW" "$PLANETTMP"
18 pyosmium-up-to-date -v -o "$PLANETNEW" "$PLANETTMP"
23 if [ $retval -ne 0 ]; then
29 mv "$PLANETCURR" "$PLANETPREV"
30 mv "$PLANETNEW" "$PLANETCURR"