Skip to content

Commit

Permalink
check rabbitmq stop as root
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSwoop committed Apr 8, 2013
1 parent e744311 commit 28d1b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rabbitmq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@

dep "stop rabbitmq" do
requires 'rabbitmq-server-304.src'
met? { !system("/etc/init.d/rabbitmq-server status") }
meet { sudo("/etc/init.d/rabbitmq-server stop") }
met? { !sudo("/etc/init.d/rabbitmq-server status", as: "root") }
meet { sudo("/etc/init.d/rabbitmq-server stop", as: "root") }
end

dep 'rabbitmq remove' do
Expand Down

0 comments on commit 28d1b04

Please sign in to comment.