box-o-sand/oldstuff/sylvilagus/admin/ch04-alert-user-setup

7 lines
188 B
Plaintext
Raw Normal View History

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