X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d358821303962f093e734708a59193e09098a09a..cdb2f6f01940242c613b6c1d31332598dec7d625:/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