From 2974ee5a289e144f770c59e8e6537e419d60aeb0 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 17 Oct 2024 16:02:57 +0100 Subject: [PATCH] overpass: workaround blank pyosmium-get-changes diff-type default --- cookbooks/overpass/templates/default/overpass-import-db.erb | 2 +- cookbooks/overpass/templates/default/overpass-update-db.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/overpass/templates/default/overpass-import-db.erb b/cookbooks/overpass/templates/default/overpass-import-db.erb index b32a84f48..40367de17 100644 --- a/cookbooks/overpass/templates/default/overpass-import-db.erb +++ b/cookbooks/overpass/templates/default/overpass-import-db.erb @@ -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 -%> diff --git a/cookbooks/overpass/templates/default/overpass-update-db.erb b/cookbooks/overpass/templates/default/overpass-update-db.erb index 09b8648fb..ea6e390a3 100644 --- a/cookbooks/overpass/templates/default/overpass-update-db.erb +++ b/cookbooks/overpass/templates/default/overpass-update-db.erb @@ -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 -%> -- 2.39.5