Update xlxd-debian-installer.sh
Этот коммит содержится в:
@@ -18,7 +18,7 @@ fi
|
||||
DIRDIR=$(pwd)
|
||||
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||
INFREF=https://n5amd.com/digital-radio-how-tos/create-xlx-xrf-d-star-reflector/
|
||||
XLXDREPO=https://github.com/LX3JL/xlxd.git
|
||||
XLXDREPO=https://github.com/vaikcode/xlxd.git
|
||||
DMRIDURL=http://xlxapi.rlx.lu/api/exportdmr.php
|
||||
WEBDIR=/var/www/xlxd
|
||||
XLXINSTDIR=/root/reflector-install-files/xlxd
|
||||
@@ -73,6 +73,10 @@ else
|
||||
echo "------------------------------------------------------------------------------"
|
||||
cd $XLXINSTDIR
|
||||
git clone $XLXDREPO
|
||||
# ===== ===== ===== ===== =====
|
||||
MAINH=$XLXINSTDIR/xlxd/src/main.h
|
||||
sed -i "s/DMRIDDB_USE_RLX_SERVER 1/DMRIDDB_USE_RLX_SERVER 0/g" $MAINH
|
||||
# ===== ===== ===== ===== =====
|
||||
cd $XLXINSTDIR/xlxd/src
|
||||
make clean
|
||||
make
|
||||
@@ -95,7 +99,7 @@ fi
|
||||
echo "------------------------------------------------------------------------------"
|
||||
echo "Getting the DMRID.dat file... "
|
||||
echo "------------------------------------------------------------------------------"
|
||||
wget -O /xlxd/dmrid.dat $DMRIDURL
|
||||
#wget -O /xlxd/dmrid.dat $DMRIDURL
|
||||
echo "------------------------------------------------------------------------------"
|
||||
echo "Copying web dashboard files and updating init script... "
|
||||
cp -R $XLXINSTDIR/xlxd/dashboard/* /var/www/xlxd/
|
||||
@@ -118,6 +122,12 @@ chown -R www-data:www-data /var/www/xlxd/
|
||||
chown -R www-data:www-data /xlxd/
|
||||
a2ensite $XLXDOMAIN
|
||||
a2dissite 000-default
|
||||
# ===== ===== ===== ===== =====
|
||||
WEBCONFIG=$WEBDIR/pgs/config.inc.php
|
||||
sed -i "s/PageOptions['RepeatersPage']['IPModus'] = 'ShowFullIP'/PageOptions['RepeatersPage']['IPModus'] = 'HideIP'/g" $WEBCONFIG
|
||||
sed -i "s/PageOptions['PeerPage']['IPModus'] = 'ShowFullIP'/PageOptions['PeerPage']['IPModus'] = 'HideIP'/g" $WEBCONFIG
|
||||
sed -i "s/CallingHome['Active'] = false/CallingHome['Active'] = true/g" $WEBCONFIG
|
||||
# ===== ===== ===== ===== =====
|
||||
service xlxd start
|
||||
systemctl restart apache2
|
||||
echo "------------------------------------------------------------------------------"
|
||||
|
||||
Ссылка в новой задаче
Block a user