diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 5c73bc8ce..5ad993b56 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -119,6 +119,10 @@ HOME=$SPOOLDIR # create the home dir with the proper user if doesn't exist, because it stores cookie file [ -d $HOME ] || $EXEC_CMD "mkdir -p $HOME" +# Change to a directory readable by INSTALLUSER to +# prevent "File operation error: eacces." messages +cd $HOME + # export global variables export EJABBERD_CONFIG_PATH export EJABBERD_MSGS_PATH