X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8f8cacc7c0d8e4eb82abb33d9a536a7382e435a6..ff044920428608b2c04507ad52d6ab52c9d6555f:/cookbooks/apache/providers/module.rb?ds=sidebyside 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