]> git.openstreetmap.org Git - chef.git/commitdiff
overpass: only download sources when missing
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Sep 2024 15:21:51 +0000 (17:21 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Sep 2024 15:22:50 +0000 (17:22 +0200)
The filename contains the version, so the file shouldn't change.

cookbooks/overpass/recipes/default.rb

index 0cad2a1ab44280c464f45378b136d3070c0952f5..665b6730b05e54b94ae94d00f7c061103ea5f0dc 100644 (file)
@@ -49,7 +49,7 @@ package %w[
 ]
 
 remote_file "#{srcdir}.tar.gz" do
 ]
 
 remote_file "#{srcdir}.tar.gz" do
-  action :create
+  action :create_if_missing
   source "https://dev.overpass-api.de/releases/osm-3s_v#{node[:overpass][:version]}.tar.gz"
   owner username
   group username
   source "https://dev.overpass-api.de/releases/osm-3s_v#{node[:overpass][:version]}.tar.gz"
   owner username
   group username