X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b20599b6503be65674c3e420be6cca91b507ac0a..ae2ef9ff4f0542d2bb2f8bbe6d6b6f27ec5c55f8:/cookbooks/apache/providers/module.rb diff --git a/cookbooks/apache/providers/module.rb b/cookbooks/apache/providers/module.rb index 166aa4a47..0a85f7ee4 100644 --- a/cookbooks/apache/providers/module.rb +++ b/cookbooks/apache/providers/module.rb @@ -22,7 +22,7 @@ def whyrun_supported? end action :install do - if not installed? + if !installed? package package_name updated = true @@ -40,14 +40,14 @@ action :install do notifies :reload, "service[apache2]" if enabled? end - updated = updated || t.updated_by_last_action? + updated ||= t.updated_by_last_action? end new_resource.updated_by_last_action(updated) end action :enable do - if not enabled? + unless enabled? link enabled_name("load") do to available_name("load") owner "root"