]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb
0ad14e80358d15331b0f1fa81ba84ad54104a418
[chef.git] / cookbooks / tile / templates / default / expire-tiles-osm2pgsql.erb
1 #!/bin/sh -e
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 sequence="$1"
6 timestamp="$2"
7
8 render_expired \
9   --map=default \
10   --socket=/var/run/renderd/renderd.sock \
11   --tile-dir=/srv/tile.openstreetmap.org/tiles \
12   --min-zoom=13 --max-zoom=19 \
13   --touch-from=13 < /var/lib/replicate/dirty-tiles.txt
14
15 rm -f /var/lib/replicate/dirty-tiles.txt
16
17 echo "$sequence" > /var/log/replicate/sequence.txt
18 echo "$timestamp" > /var/log/replicate/timestamp.txt