diff --git a/sylvilagus/admin/ch04-alert-user-setup b/sylvilagus/admin/ch04-alert-user-setup new file mode 100755 index 0000000..75386e8 --- /dev/null +++ b/sylvilagus/admin/ch04-alert-user-setup @@ -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 '.*' '.*' '.*'