X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/53259637f9cef468ce51524a5e6d3fe38eb52c50..b20599b6503be65674c3e420be6cca91b507ac0a:/cookbooks/apache/providers/module.rb diff --git a/cookbooks/apache/providers/module.rb b/cookbooks/apache/providers/module.rb index 17008371e..166aa4a47 100644 --- a/cookbooks/apache/providers/module.rb +++ b/cookbooks/apache/providers/module.rb @@ -60,7 +60,7 @@ action :enable do owner "root" group "root" notifies :reload, "service[apache2]" - only_if { ::File.exists?(available_name("conf")) } + only_if { ::File.exist?(available_name("conf")) } end new_resource.updated_by_last_action(true) @@ -106,9 +106,9 @@ def enabled_name(extension) end def installed? - ::File.exists?(available_name("load")) + ::File.exist?(available_name("load")) end def enabled? - ::File.exists?(enabled_name("load")) + ::File.exist?(enabled_name("load")) end