X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/261e7e9cd1a9882faa4ed7087b5902ebafe25988..3dd8db9fac8442e4f32fa3a55e7b68c27ece526a:/cookbooks/dns/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index 768ad711b..3ea745d3c 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -47,7 +47,7 @@ remote_directory "/srv/dns.openstreetmap.org/html" do files_mode 0644 end -zones = Array.new +zones = [] Dir.glob("/var/lib/dns/json/*.json").each do |kmlfile| zone = File.basename(kmlfile, ".json") @@ -71,7 +71,7 @@ template "/srv/dns.openstreetmap.org/html/index.html" do variables :zones => zones end -apache_site "dns.openstreetmap.org" do +apache_site "dns.openstreetmap.org" do template "apache.erb" directory "/srv/dns.openstreetmap.org" end