X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/21958591555b0b80370e944e3128ac5d533c281d..1399e23b23133c1ff7b8eee39fa5b1ca5c2bdc75:/cookbooks/chef/recipes/default.rb?ds=inline diff --git a/cookbooks/chef/recipes/default.rb b/cookbooks/chef/recipes/default.rb index a9fa67b58..a5c104215 100644 --- a/cookbooks/chef/recipes/default.rb +++ b/cookbooks/chef/recipes/default.rb @@ -34,11 +34,11 @@ directory "/var/cache/chef" do end Dir.glob("/var/cache/chef/chef_*.deb").each do |deb| - if deb != "/var/cache/chef/#{chef_package}" - file deb do - action :delete - backup false - end + next if deb == "/var/cache/chef/#{chef_package}" + + file deb do + action :delete + backup false end end @@ -109,7 +109,7 @@ template "/etc/chef/trusted_certs/verisign.pem" do mode 0644 end -directory "/etc/chef/ohai" do +directory node[:ohai][:plugin_dir] do owner "root" group "root" mode 0755