]> git.openstreetmap.org Git - chef.git/blob - cookbooks/vectortile/templates/default/vector-update-notile.erb
vectortile: Use flex expiry
[chef.git] / cookbooks / vectortile / templates / default / vector-update-notile.erb
1 #!/bin/sh
2
3 # Usage
4 # sudo -u tileupdate vector-update
5
6 set -eu
7
8 export LUA_PATH='/srv/vector.openstreetmap.org/osm2pgsql-themepark/lua/?.lua;;'
9
10 cd "<%= @expiry_dir %>"
11 osm2pgsql-replication update \
12   -d "<%= @source_database %>" \
13   --max-diff-size "<%= @diff_size %>"