2013-01-11 21:16:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
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-06-10 20:27:16 +02:00
|
|
|
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 '.*' '.*' '.*'
|