Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
foswiki
Commits
23a0f2e5
Commit
23a0f2e5
authored
Aug 25, 2020
by
André Kerkhoff
Browse files
Only enable plugins in foswiki_plugin
parent
71b66395
Changes
2
Hide whitespace changes
Inline
Side-by-side
metadata.rb
View file @
23a0f2e5
...
...
@@ -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'
resources/plugin.rb
View file @
23a0f2e5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment