configure-rabbittmq: Make it work if you run it a second time.

This is to make it easier to just run the install script again if it
fails.

(imported from commit 65deb9d001e061d58deecd44c4683231de76dc79)
This commit is contained in:
Tim Abbott 2013-11-12 20:37:29 -05:00
parent 9b9c43fd50
commit e1a8f511fe
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# 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