blob: f8ac08906fa0af32264e085b97d5e4066d085e9a (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# Create Rabbitmq user
( sleep 20 ; \
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 $@
|