From 4c1eefb7912019aa72106401f9f46dc34332713e Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 15 May 2009 22:08:00 +0000 Subject: [PATCH] The --node argument overwrites the value of ejabberdctl.cfg SVN Revision: 2078 --- src/ejabberdctl.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 5054d89b3..dcb8f2ac9 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -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`