]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/replicate.erb
Update matomo to 5.1.1
[chef.git] / cookbooks / tile / templates / default / replicate.erb
1 #!/bin/sh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 while [ 1 = 1 ]
6 do
7   /bin/osm2pgsql-replication update \
8     --database gis \
9     --post-processing /usr/local/bin/replicate-post \
10     -- \
11     --number-processes=1 \
12     --log-progress=false \
13     --expire-tiles=10-16 \
14     --expire-segment-length=90000 \
15     --expire-output=/var/lib/replicate/dirty-tiles.txt \
16 <% if node[:tile][:database][:multi_geometry] -%>
17     --multi-geometry \
18 <% end -%>
19 <% if node[:tile][:database][:hstore] -%>
20     --hstore \
21 <% end -%>
22 <% if node[:tile][:database][:tag_transform_script] -%>
23     --tag-transform-script=<%= node[:tile][:database][:tag_transform_script] %>
24 <% end -%>
25
26     sleep 30
27 done