Skip to content

Commit

Permalink
Allow configure-rabbitmq to be run w/o sudo
Browse files Browse the repository at this point in the history
(imported from commit 98e820d92b42420d6851a967f6675940ee4d8217)
  • Loading branch information
lfaraone committed Aug 16, 2015
1 parent e4fce10 commit cf7ea9b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/setup/configure-rabbitmq
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# Delete the "guest" default user and replace it with a Zulip user
# with a real password

rabbitmqctl delete_user zulip || true
rabbitmqctl delete_user guest
rabbitmqctl add_user zulip $($(dirname $0)/../../bin/get-django-setting RABBITMQ_PASSWORD)
rabbitmqctl set_user_tags zulip administrator
rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*'
RMQPW=$($(dirname $0)/../../bin/get-django-setting RABBITMQ_PASSWORD)
sudo rabbitmqctl delete_user zulip || true
sudo rabbitmqctl delete_user guest
sudo rabbitmqctl add_user zulip $RMQPW
sudo rabbitmqctl set_user_tags zulip administrator
sudo rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*'

0 comments on commit cf7ea9b

Please sign in to comment.