summaryrefslogtreecommitdiff
path: root/packaging/common/rabbitmq-script-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/common/rabbitmq-script-wrapper')
-rw-r--r--packaging/common/rabbitmq-script-wrapper2
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} "$@"