From 0be6b37318447a242137bd4a03693459b3fa6108 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 20 Nov 2012 07:04:34 -0500 Subject: [PATCH] Adding setup script for ch. 4 alerting user --- sylvilagus/admin/ch04-alert-user-setup | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 sylvilagus/admin/ch04-alert-user-setup 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 '.*' '.*' '.*'