mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
In "make dev" don't create link ejabberdctl, seems buggy
This commit is contained in:
parent
142e494d52
commit
537c8b966e
@ -3,19 +3,11 @@ echo -n "===> Preparing dev configuration files: "
|
|||||||
PWD_DIR=`pwd`
|
PWD_DIR=`pwd`
|
||||||
REL_DIR=$PWD_DIR/_build/dev/rel/ejabberd/
|
REL_DIR=$PWD_DIR/_build/dev/rel/ejabberd/
|
||||||
CON_DIR=$REL_DIR/etc/ejabberd/
|
CON_DIR=$REL_DIR/etc/ejabberd/
|
||||||
BIN_DIR=$REL_DIR/bin/
|
|
||||||
CTLPATH=$BIN_DIR/ejabberdctl
|
|
||||||
|
|
||||||
[ -z "$REL_DIR_TEMP" ] && REL_DIR_TEMP=$REL_DIR
|
[ -z "$REL_DIR_TEMP" ] && REL_DIR_TEMP=$REL_DIR
|
||||||
CON_DIR_TEMP=$REL_DIR_TEMP/etc/ejabberd/
|
CON_DIR_TEMP=$REL_DIR_TEMP/etc/ejabberd/
|
||||||
BIN_DIR_TEMP=$REL_DIR_TEMP/bin/
|
BIN_DIR_TEMP=$REL_DIR_TEMP/bin/
|
||||||
|
|
||||||
[ ! -e "ejabberdctl" ] \
|
|
||||||
&& echo -n "ejabberdctl " \
|
|
||||||
&& ln -s $CTLPATH ejabberdctl
|
|
||||||
|
|
||||||
# (cd $BIN_DIR_TEMP && sed -i "s|^SCRIPT_DIR=.*|SCRIPT_DIR=$REL_DIR|g" ejabberdctl)
|
|
||||||
|
|
||||||
cd $CON_DIR_TEMP
|
cd $CON_DIR_TEMP
|
||||||
|
|
||||||
sed -i "s|# certfiles:|certfiles:\n - $CON_DIR/cert.pem|g" ejabberd.yml.example
|
sed -i "s|# certfiles:|certfiles:\n - $CON_DIR/cert.pem|g" ejabberd.yml.example
|
||||||
@ -31,4 +23,6 @@ sed -i "s|#' POLL|EJABBERD_BYPASS_WARNINGS=true\n\n#' POLL|g" ejabberdctl.cfg.ex
|
|||||||
&& mv ejabberdctl.cfg.example ejabberdctl.cfg
|
&& mv ejabberdctl.cfg.example ejabberdctl.cfg
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "===> Now you can start this ejabberd dev with: ./ejabberdctl live"
|
echo "===> Some example ways to start this ejabberd dev:"
|
||||||
|
echo " _build/dev/rel/ejabberd/bin/ejabberd console"
|
||||||
|
echo " _build/dev/rel/ejabberd/bin/ejabberdctl live"
|
||||||
|
Loading…
Reference in New Issue
Block a user