Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umask #219

Merged
merged 1 commit into from
Apr 6, 2015
Merged

umask #219

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions providers/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def plugin_enabled?(name)
action :enable do
unless plugin_enabled?(new_resource.plugin)
execute "rabbitmq-plugins enable #{new_resource.plugin}" do
umask 0022
Chef::Log.info "Enabling RabbitMQ plugin '#{new_resource.plugin}'."
environment 'PATH' => "#{ENV['PATH']}:/usr/lib/rabbitmq/bin"
new_resource.updated_by_last_action(true)
Expand All @@ -43,6 +44,7 @@ def plugin_enabled?(name)
action :disable do
if plugin_enabled?(new_resource.plugin)
execute "rabbitmq-plugins disable #{new_resource.plugin}" do
umask 0022
Chef::Log.info "Disabling RabbitMQ plugin '#{new_resource.plugin}'."
environment 'PATH' => "#{ENV['PATH']}:/usr/lib/rabbitmq/bin"
new_resource.updated_by_last_action(true)
Expand Down