Adding setup script for ch. 4 alerting user

This commit is contained in:
Dan Buch 2012-11-20 07:04:34 -05:00
parent 19350d73ca
commit 0be6b37318

View File

@ -0,0 +1,6 @@
#!/bin/bash
if [ -z "$(rabbitmqctl -q list_users | grep ^alert_user)" ] ; then
rabbitmqctl add_user alert_user alertme
fi
rabbitmqctl set_permissions -p '/' alert_user '.*' '.*' '.*'