diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/common/rabbitmq-script-wrapper | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper index 4c3ff35b..08e888cd 100644 --- a/packaging/common/rabbitmq-script-wrapper +++ b/packaging/common/rabbitmq-script-wrapper @@ -44,7 +44,7 @@ cd /var/lib/rabbitmq SCRIPT=`basename $0` -if [ `id -u` == 0 ] ; then +if [ `id -u` = 0 ] ; then su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}" elif [ `id -u` = `id -u rabbitmq` ] ; then /usr/lib/rabbitmq/bin/${SCRIPT} "$@" |