2015-08-28 18:37:58 +02:00
|
|
|
#!/bin/sh -xe
|
2013-01-11 21:16:42 +01:00
|
|
|
#
|
2013-08-06 21:32:15 +02:00
|
|
|
# Delete the "guest" default user and replace it with a Zulip user
|
2013-01-11 21:16:42 +01:00
|
|
|
# with a real password
|
|
|
|
|
2015-09-26 03:47:30 +02:00
|
|
|
RMQPW=$("$(dirname "$0")/../../bin/get-django-setting" RABBITMQ_PASSWORD)
|
2015-06-10 20:27:16 +02:00
|
|
|
sudo rabbitmqctl delete_user zulip || true
|
2015-08-28 18:37:58 +02:00
|
|
|
sudo rabbitmqctl delete_user guest || true
|
2015-09-26 03:47:30 +02:00
|
|
|
sudo rabbitmqctl add_user zulip "$RMQPW"
|
2015-06-10 20:27:16 +02:00
|
|
|
sudo rabbitmqctl set_user_tags zulip administrator
|
|
|
|
sudo rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*'
|