X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e050b6df164ed5daf4c90115d65cd1700858cc1c..35f220a555dee107786152d3daff4d66d1655e56:/cookbooks/apache/providers/module.rb diff --git a/cookbooks/apache/providers/module.rb b/cookbooks/apache/providers/module.rb index e824a0343..c5efdd2c5 100644 --- a/cookbooks/apache/providers/module.rb +++ b/cookbooks/apache/providers/module.rb @@ -40,6 +40,13 @@ action :install do 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"