* tools/ejabberdctl: Work also when 'which' is unavailable

SVN Revision: 1419
This commit is contained in:
Badlop 2008-07-08 11:07:45 +00:00
parent 3dfcc4c4d3
commit 407d3b77b7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-07-08 Badlop <badlop@process-one.net>
* tools/ejabberdctl: Work also when 'which' is unavailable
2008-07-08 Christophe Romain <christophe.romain@process-one.net>
* src/web/ejabberd_http_poll.erl: improve ip fetching patch

View File

@ -4,7 +4,8 @@ NODE=ejabberd
HOST=localhost
# Define ejabberd environment
base="`dirname $(which "$0")`/.."
here=`which "$0" 2>/dev/null || echo .`
base="`dirname $here`/.."
ROOTDIR=`(cd "$base"; echo $PWD)`
SASL_LOG_PATH=$ROOTDIR/sasl.log
EJABBERD_DB=$ROOTDIR/database/$NODE