25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

The --node argument overwrites the value of ejabberdctl.cfg

SVN Revision: 2078
This commit is contained in:
Badlop 2009-05-15 22:08:00 +00:00
parent 8af1c41a3e
commit 4c1eefb791

View File

@ -21,7 +21,7 @@ while [ $# -ne 0 ] ; do
shift shift
case $PARAM in case $PARAM in
--) break ;; --) break ;;
--node) ERLANG_NODE=$1; shift ;; --node) ERLANG_NODE_ARG=$1; shift ;;
--config-dir) ETCDIR=$1 ; shift ;; --config-dir) ETCDIR=$1 ; shift ;;
--config) EJABBERD_CONFIG_PATH=$1 ; shift ;; --config) EJABBERD_CONFIG_PATH=$1 ; shift ;;
--ctl-config) EJABBERDCTL_CONFIG_PATH=$1 ; shift ;; --ctl-config) EJABBERDCTL_CONFIG_PATH=$1 ; shift ;;
@ -51,6 +51,9 @@ fi
if [ "$EJABBERD_DOC_PATH" = "" ] ; then if [ "$EJABBERD_DOC_PATH" = "" ] ; then
EJABBERD_DOC_PATH=@DOCDIR@ EJABBERD_DOC_PATH=@DOCDIR@
fi fi
if [ "$ERLANG_NODE_ARG" != "" ] ; then
ERLANG_NODE=$ERLANG_NODE_ARG
fi
# check the proper system user is used # check the proper system user is used
ID=`id -g` ID=`id -g`