]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/replicate.erb
podman: revert to using default slirp4netns mtu
[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=13-19 \
14     --expire-output=/var/lib/replicate/dirty-tiles.txt \
15 <% if node[:tile][:database][:multi_geometry] -%>
16     --multi-geometry \
17 <% end -%>
18 <% if node[:tile][:database][:hstore] -%>
19     --hstore \
20 <% end -%>
21 <% if node[:tile][:database][:tag_transform_script] -%>
22     --tag-transform-script=<%= node[:tile][:database][:tag_transform_script] %>
23 <% end -%>
24
25     sleep 30
26 done