]> git.openstreetmap.org Git - chef.git/commitdiff
overpass: workaround blank pyosmium-get-changes diff-type default
authorGrant Slater <github@firefishy.com>
Thu, 17 Oct 2024 15:02:57 +0000 (16:02 +0100)
committerGrant Slater <github@firefishy.com>
Thu, 17 Oct 2024 15:02:57 +0000 (16:02 +0100)
cookbooks/overpass/templates/default/overpass-import-db.erb
cookbooks/overpass/templates/default/overpass-update-db.erb

index b32a84f48818b8d4542a12374a308d0537056956..40367de170a00b564fda86b910bb824a23324f11 100644 (file)
@@ -40,7 +40,7 @@ echo "Import finished. Catching up with new changes."
 sudo systemctl start overpass-dispatcher
 sudo systemctl start overpass-area-dispatcher
 
-PYOSMIUM="sudo -u <%= @username %> pyosmium-get-changes --server <%= node[:overpass][:replication_url] %> -f <%= @basedir %>/db/replicate-id"
+PYOSMIUM="sudo -u <%= @username %> pyosmium-get-changes --server <%= node[:overpass][:replication_url] %> --diff-type osc.gz -f <%= @basedir %>/db/replicate-id"
 <% if node[:overpass][:meta_mode] == "attic" -%>
 PYOSMIUM="$PYOSMIUM --no-deduplicate"
 <% end -%>
index 09b8648fb4eeb075a52f20403f6706bc07e519ef..ea6e390a3e39124a83a5dbb0635e34f4d0c15c90 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-PYOSMIUM="pyosmium-get-changes --server <%= node[:overpass][:replication_url] %> -f <%= @basedir %>/db/replicate-id"
+PYOSMIUM="pyosmium-get-changes --server <%= node[:overpass][:replication_url] %> --diff-type osc.gz -f <%= @basedir %>/db/replicate-id"
 <% if node[:overpass][:meta_mode] == "attic" -%>
 PYOSMIUM="$PYOSMIUM --no-deduplicate"
 <% end -%>