7 lines
188 B
Bash
Executable File
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 '.*' '.*' '.*'
|