Révision 679a3ce7
Check if we are running as a user required by rabbitmqctl
| plugins/rabbitmq/rabbitmq_connections | ||
|---|---|---|
| 42 | 42 |
|
| 43 | 43 |
=cut |
| 44 | 44 |
|
| 45 |
case $(whoami) in |
|
| 46 |
rabbitmq|root) |
|
| 47 |
;; |
|
| 48 |
*) |
|
| 49 |
echo 'Error: Plugin requires "user" to be set in plugin configuration.' >&2 |
|
| 50 |
echo 'See "munindoc rabbitmq_connections" for more information' >&2 |
|
| 51 |
exit 1 |
|
| 52 |
;; |
|
| 53 |
esac |
|
| 54 |
|
|
| 45 | 55 |
# If run with the "config"-parameter, give out information on how the |
| 46 | 56 |
# graphs should look. |
| 47 | 57 |
|
Formats disponibles : Unified diff