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

Let "make dev" always update SCRIPT_DIR in ejabberdctl, even if link exists

This commit is contained in:
Badlop 2021-06-25 13:08:06 +02:00
parent ac06161f30
commit b93fc4333c

View File

@ -8,8 +8,9 @@ CTLPATH=$BIN_DIR/ejabberdctl
[ ! -f "ejabberdctl" ] \ [ ! -f "ejabberdctl" ] \
&& echo -n "ejabberdctl " \ && echo -n "ejabberdctl " \
&& ln -s $CTLPATH ejabberdctl \ && ln -s $CTLPATH ejabberdctl
&& (cd $BIN_DIR && sed -i "s|^SCRIPT_DIR=.*|SCRIPT_DIR=`pwd`|g" ejabberdctl)
(cd $BIN_DIR && sed -i "s|^SCRIPT_DIR=.*|SCRIPT_DIR=`pwd`|g" ejabberdctl)
cd $CON_DIR cd $CON_DIR