Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
rabbitmq
Commits
70fa62fe
Unverified
Commit
70fa62fe
authored
Jul 17, 2020
by
Michael Klishin
Committed by
GitHub
Jul 17, 2020
Browse files
Merge pull request #561 from ramereth/ramereth/plugin-umask-fix-5.x
Fix Chef 16 issue with plugin resource
parents
1fe409b3
9c061c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
providers/plugin.rb
View file @
70fa62fe
...
...
@@ -39,7 +39,7 @@ end
action
:enable
do
unless
plugin_enabled?
(
new_resource
.
plugin
)
execute
"rabbitmq-plugins enable
#{
new_resource
.
plugin
}
"
do
umask
0022
umask
'
0022
'
Chef
::
Log
.
info
"Enabling RabbitMQ plugin '
#{
new_resource
.
plugin
}
'."
environment
shell_environment
.
merge
(
'PATH'
=>
"
#{
ENV
[
'PATH'
]
}
:/usr/lib/rabbitmq/bin"
...
...
@@ -52,7 +52,7 @@ end
action
:disable
do
if
plugin_enabled?
(
new_resource
.
plugin
)
execute
"rabbitmq-plugins disable
#{
new_resource
.
plugin
}
"
do
umask
0022
umask
'
0022
'
Chef
::
Log
.
info
"Disabling RabbitMQ plugin '
#{
new_resource
.
plugin
}
'."
environment
shell_environment
.
merge
(
'PATH'
=>
"
#{
ENV
[
'PATH'
]
}
:/usr/lib/rabbitmq/bin"
...
...
Frederik Thuysbaert
😄
@Frederik
mentioned in commit
16bcd772
·
Jul 17, 2020
mentioned in commit
16bcd772
mentioned in commit 16bcd772e4f3859c472c7f98bef4da2ad33286ca
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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