X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d358821303962f093e734708a59193e09098a09a..fb1f1d56e8d8a6a86b79c71546e6c114fec2640c:/cookbooks/osmosis/recipes/default.rb diff --git a/cookbooks/osmosis/recipes/default.rb b/cookbooks/osmosis/recipes/default.rb index 42679ac3f..2c55a64aa 100644 --- a/cookbooks/osmosis/recipes/default.rb +++ b/cookbooks/osmosis/recipes/default.rb @@ -19,15 +19,18 @@ 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