diff options
author | Badlop <badlop@process-one.net> | 2009-05-15 22:08:00 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-05-15 22:08:00 +0000 |
commit | 4c1eefb7912019aa72106401f9f46dc34332713e (patch) | |
tree | 64625618761a51744d9414604bc643232597301a /src/ejabberdctl.template | |
parent | Erlang/OTP R13 can be used, but its support is still experimental (diff) |
The --node argument overwrites the value of ejabberdctl.cfg
SVN Revision: 2078
Diffstat (limited to 'src/ejabberdctl.template')
-rw-r--r-- | src/ejabberdctl.template | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 5054d89b..dcb8f2ac 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` |