]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/replicate.erb
podman: workaround ubuntu 22.04 crun bug
[chef.git] / cookbooks / tile / templates / default / replicate.erb
index eedf4e5763d3badfc71771166481074bfc6de7a8..4612f5f689dd5669d6016e7875c45c1f68c47a1f 100644 (file)
@@ -12,9 +12,6 @@ function onexit {
     [ -f sequence-prev.txt ] && mv sequence-prev.txt sequence.txt
 }
 
-# Send output to the log
-exec > /var/log/tile/replicate.log 2>&1
-
 # Change to the replication state directory
 cd /var/lib/replicate
 
@@ -46,7 +43,7 @@ do
         echo "Fetched new data from $(cat sequence-prev.txt) to $(cat sequence.txt) into ${file}"
 
         # Apply the changes to the database
-        osm2pgsql --database gis --slim --append --number-processes=1 \
+        osm2pgsql --database gis --slim --append --number-processes=1 --log-progress=false \
 <% if node[:tile][:database][:node_file] -%>
                   --flat-nodes=<%= node[:tile][:database][:node_file] %> \
 <% end -%>