mirror of https://github.com/zulip/zulip.git
Allow configure-rabbitmq to be run w/o sudo
(imported from commit 98e820d92b42420d6851a967f6675940ee4d8217)
This commit is contained in:
parent
e4fce10f46
commit
cf7ea9bef9
|
@ -3,8 +3,9 @@
|
||||||
# Delete the "guest" default user and replace it with a Zulip user
|
# Delete the "guest" default user and replace it with a Zulip user
|
||||||
# with a real password
|
# with a real password
|
||||||
|
|
||||||
rabbitmqctl delete_user zulip || true
|
RMQPW=$($(dirname $0)/../../bin/get-django-setting RABBITMQ_PASSWORD)
|
||||||
rabbitmqctl delete_user guest
|
sudo rabbitmqctl delete_user zulip || true
|
||||||
rabbitmqctl add_user zulip $($(dirname $0)/../../bin/get-django-setting RABBITMQ_PASSWORD)
|
sudo rabbitmqctl delete_user guest
|
||||||
rabbitmqctl set_user_tags zulip administrator
|
sudo rabbitmqctl add_user zulip $RMQPW
|
||||||
rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*'
|
sudo rabbitmqctl set_user_tags zulip administrator
|
||||||
|
sudo rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*'
|
||||||
|
|
Loading…
Reference in New Issue