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

Allow more environment variable overrides in ejabberdctl (EJAB-891)

SVN Revision: 1996
This commit is contained in:
Christophe Romain 2009-03-19 21:30:10 +00:00
parent cd3556f195
commit 026c4a2711
2 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2009-03-19 Christophe Romain <christophe.romain@process-one.net>
* src/ejabberdctl.template: Allow more environment variable overrides
in ejabberdctl (thanks to Brian Cully)(EJAB-891)
2009-03-10 Badlop <badlop@process-one.net> 2009-03-10 Badlop <badlop@process-one.net>
* doc/release_notes_2.0.4.txt: Added file for new release * doc/release_notes_2.0.4.txt: Added file for new release

View File

@ -79,12 +79,24 @@ fi
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $KERNEL_OPTS" ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $KERNEL_OPTS"
# define additional environment variables # define additional environment variables
EJABBERDDIR=@LIBDIR@/ejabberd if [ "$EJABBERDDIR" = "" ]; then
EJABBERD_EBIN_PATH=$EJABBERDDIR/ebin EJABBERDDIR=@LIBDIR@/ejabberd
EJABBERD_PRIV_PATH=$EJABBERDDIR/priv fi
EJABBERD_BIN_PATH=$EJABBERD_PRIV_PATH/bin if [ "$EJABBERD_EBIN_PATH" = "" ]; then
EJABBERD_SO_PATH=$EJABBERD_PRIV_PATH/lib EJABBERD_EBIN_PATH=$EJABBERDDIR/ebin
EJABBERD_MSGS_PATH=$EJABBERD_PRIV_PATH/msgs fi
if [ "$EJABBERD_PRIV_PATH" = "" ]; then
EJABBERD_PRIV_PATH=$EJABBERDDIR/priv
fi
if [ "$EJABBRD_BIN_PATH" = "" ]; then
EJABBERD_BIN_PATH=$EJABBERD_PRIV_PATH/bin
fi
if [ "$EJABBERD_SO_PATH" = "" ]; then
EJABBERD_SO_PATH=$EJABBERD_PRIV_PATH/lib
fi
if [ "$EJABBERD_MSGS_PATH" = "" ]; then
EJABBERD_MSGS_PATH=$EJABBERD_PRIV_PATH/msgs
fi
EJABBERD_LOG_PATH=$LOGS_DIR/ejabberd.log EJABBERD_LOG_PATH=$LOGS_DIR/ejabberd.log
SASL_LOG_PATH=$LOGS_DIR/sasl.log SASL_LOG_PATH=$LOGS_DIR/sasl.log