Adding setup script for ch. 4 alerting user
This commit is contained in:
parent
19350d73ca
commit
0be6b37318
6
sylvilagus/admin/ch04-alert-user-setup
Executable file
6
sylvilagus/admin/ch04-alert-user-setup
Executable file
@ -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 '.*' '.*' '.*'
|
Loading…
Reference in New Issue
Block a user