diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-23 17:38:58 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-23 17:38:58 +0100 |
commit | 5882fac02e81e490c550f6e1813ca18ba9997e1e (patch) | |
tree | 67d2035ab5ea4b6a78b876d8208465274da71ac6 | |
parent | ba36089212f3fbd024d7d546de9a412c6bd661bf (diff) | |
download | rabbitmq-server-5882fac02e81e490c550f6e1813ca18ba9997e1e.tar.gz |
rabbitmq-plugins must be run as root
-rw-r--r-- | packaging/common/rabbitmq-script-wrapper | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper index 23d2a06c..480abb17 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 |