25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +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
case $PARAM in
--) break ;;
--node) ERLANG_NODE=$1; shift ;;
--node) ERLANG_NODE_ARG=$1; shift ;;
--config-dir) ETCDIR=$1 ; shift ;;
--config) EJABBERD_CONFIG_PATH=$1 ; shift ;;
--ctl-config) EJABBERDCTL_CONFIG_PATH=$1 ; shift ;;
@ -51,6 +51,9 @@ fi
if [ "$EJABBERD_DOC_PATH" = "" ] ; then
EJABBERD_DOC_PATH=@DOCDIR@
fi
if [ "$ERLANG_NODE_ARG" != "" ] ; then
ERLANG_NODE=$ERLANG_NODE_ARG
fi
# check the proper system user is used
ID=`id -g`