mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix so script runs correctly when invoked by root (EJAB-1152)
SVN Revision: 2863
This commit is contained in:
parent
3f1c8f98ed
commit
c2f242b4a6
@ -60,7 +60,7 @@ ID=`id -g`
|
|||||||
EJID=`id -g $INSTALLUSER`
|
EJID=`id -g $INSTALLUSER`
|
||||||
EXEC_CMD="false"
|
EXEC_CMD="false"
|
||||||
if [ $ID -eq 0 ] ; then
|
if [ $ID -eq 0 ] ; then
|
||||||
EXEC_CMD="su ${INSTALLUSER} -c"
|
EXEC_CMD="su ${INSTALLUSER} -p -c"
|
||||||
fi
|
fi
|
||||||
if [ "$ID" -eq "$EJID" ] ; then
|
if [ "$ID" -eq "$EJID" ] ; then
|
||||||
EXEC_CMD="sh -c"
|
EXEC_CMD="sh -c"
|
||||||
|
Loading…
Reference in New Issue
Block a user