mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Check for Effective GID EGID in ejabberdctl (thanks to Rustam Aliyev)(EJAB-1160)
SVN Revision: 2894
This commit is contained in:
parent
1bcd481fdc
commit
82cd0adb79
@ -57,11 +57,14 @@ fi
|
|||||||
|
|
||||||
# check the proper system user is used
|
# check the proper system user is used
|
||||||
ID=`id -g`
|
ID=`id -g`
|
||||||
|
GIDS=`id -G`
|
||||||
EJID=`id -g $INSTALLUSER`
|
EJID=`id -g $INSTALLUSER`
|
||||||
EXEC_CMD="false"
|
EXEC_CMD="false"
|
||||||
if [ $ID -eq 0 ] ; then
|
for GID in $GIDS; do
|
||||||
|
if [ $GID -eq 0 ] ; then
|
||||||
EXEC_CMD="su ${INSTALLUSER} -p -c"
|
EXEC_CMD="su ${INSTALLUSER} -p -c"
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
if [ "$ID" -eq "$EJID" ] ; then
|
if [ "$ID" -eq "$EJID" ] ; then
|
||||||
EXEC_CMD="sh -c"
|
EXEC_CMD="sh -c"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user