diff options
author | Hubert Plociniczak <hubert@lshift.net> | 2008-12-05 18:10:04 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert@lshift.net> | 2008-12-05 18:10:04 +0000 |
commit | 8bca4d5e133b088e5ab493211343c57116726177 (patch) | |
tree | 4166cc5f7301d19e8ee8e371fe9de499debaae94 | |
parent | 805d38a9dd46d5e6cd0b7f9d0fefea51f4ee19b5 (diff) | |
parent | 09714a637c151d4b6729a14958f0905a1aa49248 (diff) | |
download | rabbitmq-server-8bca4d5e133b088e5ab493211343c57116726177.tar.gz |
Merge bug19929 into default
-rw-r--r-- | packaging/RPMS/Fedora/rabbitmqctl_wrapper | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/RPMS/Fedora/rabbitmqctl_wrapper b/packaging/RPMS/Fedora/rabbitmqctl_wrapper index 75b37c0d..6b387d29 100644 --- a/packaging/RPMS/Fedora/rabbitmqctl_wrapper +++ b/packaging/RPMS/Fedora/rabbitmqctl_wrapper @@ -10,5 +10,10 @@ for arg in "$@" ; do done cd / -su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmqctl ${CMDLINE}" - +if [ `id -u` = 0 ] ; then + su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmqctl ${CMDLINE}" +else + /usr/lib/rabbitmq/bin/rabbitmqctl + echo -e "\nOnly root should run rabbitmqctl\n" + exit 1 +fi |