]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/osmosis/recipes/default.rb
Add new stateofthemap site for 2016
[chef.git] / cookbooks / osmosis / recipes / default.rb
index 42679ac3f956c10f78f527efbed8ba0ce5f39125..2c55a64aa18914561f5550eb3482dac391a4932e 100644 (file)
 
 include_recipe "chef"
 
+package "unzip"
+package "openjdk-6-jre"
+
 osmosis_package = "osmosis-#{node[:osmosis][:version]}.zip"
 osmosis_directory = "/opt/osmosis-#{node[:osmosis][:version]}"
 
 Dir.glob("/var/cache/chef/osmosis-*.zip").each do |zip|
-  if zip != "/var/cache/chef/#{osmosis_package}"
-    file zip do
-      action :delete
-      backup false
-    end
+  next if zip == "/var/cache/chef/#{osmosis_package}"
+
+  file zip do
+    action :delete
+    backup false
   end
 end