# osmosis --read-replication-interval-init
# Send output to the log
-exec > /var/log/replicate/replicate.log 2>&1
+exec > /var/log/tile/replicate.log 2>&1
# Change to the replication state directory
cd /var/lib/replicate
<% end -%>
# Expire tiles which are touched by the changes
- /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
+ sudo -u www-data /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
fi
# Delete old downloads