summaryrefslogtreecommitdiff
path: root/packaging/common
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-23 17:38:58 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-23 17:38:58 +0100
commit94c2476a2ebc3db11c106fdba03640ed85f34ea7 (patch)
tree67d2035ab5ea4b6a78b876d8208465274da71ac6 /packaging/common
parente492e8c3807dd4a47c55c92e8a2e933b34e1cefc (diff)
downloadrabbitmq-server-git-94c2476a2ebc3db11c106fdba03640ed85f34ea7.tar.gz
rabbitmq-plugins must be run as root
Diffstat (limited to 'packaging/common')
-rw-r--r--packaging/common/rabbitmq-script-wrapper6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper
index 23d2a06cbd..480abb17e5 100644
--- a/packaging/common/rabbitmq-script-wrapper
+++ b/packaging/common/rabbitmq-script-wrapper
@@ -29,10 +29,10 @@ cd /var/lib/rabbitmq
SCRIPT=`basename $0`
-if [ `id -u` = 0 ] ; then
- @SU_RABBITMQ_SH_C@ "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
-elif [ `id -u` = `id -u rabbitmq` ] ; then
+if [ `id -u` = `id -u rabbitmq` -o "${SCRIPT}" = "rabbitmq-plugins" ] ; then
/usr/lib/rabbitmq/bin/${SCRIPT} "$@"
+elif [ `id -u` = 0 ] ; then
+ @SU_RABBITMQ_SH_C@ "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
else
/usr/lib/rabbitmq/bin/${SCRIPT}
echo