Use more reliable 'id -u' to correctly identify
the user for the debian wrapper.
This commit is contained in:
parent
3eac32c737
commit
6d64eb962e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue