Fix so script runs correctly when invoked by root (EJAB-1152)

SVN Revision: 2862
This commit is contained in:
Badlop 2010-01-05 19:43:03 +00:00
parent 05ee83bddc
commit 761ed1b192
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ ID=`id -g`
EJID=`id -g $INSTALLUSER`
EXEC_CMD="false"
if [ $ID -eq 0 ] ; then
EXEC_CMD="su ${INSTALLUSER} -c"
EXEC_CMD="su ${INSTALLUSER} -p -c"
fi
if [ "$ID" -eq "$EJID" ] ; then
EXEC_CMD="sh -c"