diff options
author | Hubert Plociniczak <hubert@lshift.net> | 2008-12-04 18:16:43 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert@lshift.net> | 2008-12-04 18:16:43 +0000 |
commit | 714c8d1957e9f5332b6deaf858bfa64d842960db (patch) | |
tree | cb5730a4e940826bafd5b3d99fa7cff01cbe384a /packaging/debs | |
parent | 27b23bd099990b57d59e56ddcb720ae989905fb8 (diff) | |
parent | 76096e74d5fde3e657a420b9dc9fe53d5725c9eb (diff) | |
download | rabbitmq-server-714c8d1957e9f5332b6deaf858bfa64d842960db.tar.gz |
Merge bug19859 into default
Diffstat (limited to 'packaging/debs')
-rw-r--r-- | packaging/debs/Debian/debian/rabbitmqctl_wrapper | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packaging/debs/Debian/debian/rabbitmqctl_wrapper b/packaging/debs/Debian/debian/rabbitmqctl_wrapper index 75b37c0d..774731fc 100644 --- a/packaging/debs/Debian/debian/rabbitmqctl_wrapper +++ b/packaging/debs/Debian/debian/rabbitmqctl_wrapper @@ -10,5 +10,12 @@ for arg in "$@" ; do done cd / -su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmqctl ${CMDLINE}" + +if [ ${UID} = 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 |