while true
do
# Work out the name of the next file
- file="changes-${sequenceNumber}.osm.gz"
+ file="changes-${sequenceNumber}.osc.gz"
# Save state file so we can rollback if an error occurs
cp state.txt state-prev.txt
# No need to rollback now
rm state-prev.txt
- # Expire tiles which are touched by the changes
- sudo -u www-data /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
+ # Queue these changes for expiry processing
+ ln ${file} expire-queue/$file
fi
# Delete old downloads