Commit 23a0f2e5 authored by André Kerkhoff's avatar André Kerkhoff
Browse files

Only enable plugins in foswiki_plugin

parent 71b66395
......@@ -3,7 +3,7 @@ maintainer 'HPC'
maintainer_email 'hpc@gsi.de'
license 'All rights reserved'
description 'Installs/Configures Foswiki'
version '2.0.1'
version '2.0.2'
depends 'apache2', '< 6.0'
supports 'debian'
supports 'ubuntu'
......@@ -37,9 +37,11 @@ action :install do
only_if { new_resource.force || !installed? }
end
foswiki_configure "{Plugins}{#{new_resource.plugin_name}}{Enabled}" do
value new_resource.enable ? 1 : 0
tools_dir real_tools_dir
if new_resource.plugin_name =~ /Plugin$/
foswiki_configure "{Plugins}{#{new_resource.plugin_name}}{Enabled}" do
value new_resource.enable ? 1 : 0
tools_dir real_tools_dir
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment