X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace..0f2d62e23b1be566d802ef3ee9a7b4adbddfab2a:/cookbooks/chef/recipes/server.rb diff --git a/cookbooks/chef/recipes/server.rb b/cookbooks/chef/recipes/server.rb index 18a0312e2..37c84e78f 100644 --- a/cookbooks/chef/recipes/server.rb +++ b/cookbooks/chef/recipes/server.rb @@ -34,11 +34,11 @@ directory "/var/cache/chef" do end Dir.glob("/var/cache/chef/chef-server_*.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 @@ -85,7 +85,7 @@ end service "chef-server-runsvdir" do provider Chef::Provider::Service::Upstart - action [ :enable, :start ] + action [:enable, :start] supports :status => true, :restart => true, :reload => true end