Use more reliable 'id -u' to correctly identify

the user for the debian wrapper.
This commit is contained in:
Hubert Plociniczak 2008-12-05 17:14:20 +00:00
parent 3eac32c737
commit 6d64eb962e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ done
cd /
if [ ${UID} = 0 ] ; then
if [ `id -u` = 0 ] ; then
su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmqctl ${CMDLINE}"
else
/usr/lib/rabbitmq/bin/rabbitmqctl