mirror of https://github.com/zulip/zulip.git
12 lines
418 B
Bash
Executable File
12 lines
418 B
Bash
Executable File
#!/bin/sh -xe
|
|
#
|
|
# 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 || true
|
|
sudo rabbitmqctl add_user zulip "$RMQPW"
|
|
sudo rabbitmqctl set_user_tags zulip administrator
|
|
sudo rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*'
|