]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/recipes/default.rb
Update matomo to 4.12.1
[chef.git] / cookbooks / dns / recipes / default.rb
index 04a07f61cac3c68e617765d77bd02f2105660152..d7d038c30c4ca18cbf9e477e8d6eb53263b00ceb 100644 (file)
@@ -43,11 +43,11 @@ cache_dir = Chef::Config[:file_cache_path]
 
 dnscontrol_version = "3.20.0"
 
 
 dnscontrol_version = "3.20.0"
 
-if arm?
-  dnscontrol_arch = "arm64"
-else
-  dnscontrol_arch = "amd64"
-end
+dnscontrol_arch = if arm?
+                    "arm64"
+                  else
+                    "amd64"
+                  end
 
 remote_file "#{cache_dir}/dnscontrol-#{dnscontrol_version}.deb" do
   source "https://github.com/StackExchange/dnscontrol/releases/download/v#{dnscontrol_version}/dnscontrol-#{dnscontrol_version}.#{dnscontrol_arch}.deb"
 
 remote_file "#{cache_dir}/dnscontrol-#{dnscontrol_version}.deb" do
   source "https://github.com/StackExchange/dnscontrol/releases/download/v#{dnscontrol_version}/dnscontrol-#{dnscontrol_version}.#{dnscontrol_arch}.deb"