summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/rabbitmq/init.sh
blob: 9d04dd11df05209ff309837ae4aa2856256d5ee2 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Create Rabbitmq user
( sleep 10 ; \
rabbitmqctl add_user $RABBITMQ_USER $RABBITMQ_PASSWORD 2>/dev/null ; \
rabbitmqctl set_user_tags $RABBITMQ_USER administrator ; \
rabbitmqctl set_permissions -p / $RABBITMQ_USER  ".*" ".*" ".*" ; \
echo "*** User '$RABBITMQ_USER' with password '$RABBITMQ_PASSWORD' completed. ***") &

rabbitmq-server $@