Skip to content

Commit

Permalink
Merge pull request #348 from korekhov/MODULES-1987
Browse files Browse the repository at this point in the history
(MODULES-1987) mnesia dir is not wiped out
  • Loading branch information
jonnytdevops committed Jun 23, 2015
2 parents 16fa909 + a112e2d commit 4de44a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rabbitmq_erlang_cookie/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def exists?
def content=(value)
if resource[:force] == :true # Danger!
puppet('resource', 'service', resource[:service_name], 'ensure=stopped')
FileUtils.rm_rf(resource[:rabbitmq_home] + File::PATH_SEPARATOR + 'mnesia')
FileUtils.rm_rf(resource[:rabbitmq_home] + File::SEPARATOR + 'mnesia')
File.open(resource[:path], 'w') do |cookie|
cookie.chmod(0400)
cookie.write(value)
Expand Down

0 comments on commit 4de44a3

Please sign in to comment.