zulip/scripts/setup/configure-rabbitmq

12 lines
400 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# Delete the "guest" default user and replace it with a Zulip user
# with a real password
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 '.*' '.*' '.*'