X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d358821303962f093e734708a59193e09098a09a..956ffe2008afb266d5fa00010e642e8af03c48b0:/cookbooks/osmosis/recipes/default.rb?ds=sidebyside 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