box-o-sand/oldstuff/sylvilagus/admin/ch04-alert-user-setup
2015-06-22 13:15:42 -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 '.*' '.*' '.*'