From c2f242b4a6c52c0a7bb8410970c59a8cd4a89f9a Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 5 Jan 2010 20:31:19 +0000 Subject: [PATCH] Fix so script runs correctly when invoked by root (EJAB-1152) SVN Revision: 2863 --- src/ejabberdctl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 755c02bf3..00152d9fd 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -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"