box-o-sand/sylvilagus/admin/ch04-alert-user-setup
2012-11-20 07:04:34 -05:00

7 lines
188 B
Bash
Executable File

#!/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 '.*' '.*' '.*'