X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e050b6df164ed5daf4c90115d65cd1700858cc1c..2db5972d9f9604f3c3d7b8167fa3a740e6db7e03:/cookbooks/apache/providers/module.rb diff --git a/cookbooks/apache/providers/module.rb b/cookbooks/apache/providers/module.rb index e824a0343..252b5e816 100644 --- a/cookbooks/apache/providers/module.rb +++ b/cookbooks/apache/providers/module.rb @@ -33,13 +33,20 @@ action :install do source new_resource.conf owner "root" group "root" - mode 0644 + mode 0o644 variables new_resource.variables end end end action :enable do + execute "a2enmod-#{new_resource.name}" do + command "a2enmod #{new_resource.name}" + user "root" + group "root" + not_if { ::File.exist?(enabled_name("load")) } + end + link enabled_name("load") do to available_name("load") owner "root"