Update xlxd-debian-installer.sh
Этот коммит содержится в:
@@ -18,7 +18,7 @@ fi
|
|||||||
DIRDIR=$(pwd)
|
DIRDIR=$(pwd)
|
||||||
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||||
INFREF=https://n5amd.com/digital-radio-how-tos/create-xlx-xrf-d-star-reflector/
|
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
|
DMRIDURL=http://xlxapi.rlx.lu/api/exportdmr.php
|
||||||
WEBDIR=/var/www/xlxd
|
WEBDIR=/var/www/xlxd
|
||||||
XLXINSTDIR=/root/reflector-install-files/xlxd
|
XLXINSTDIR=/root/reflector-install-files/xlxd
|
||||||
@@ -73,6 +73,10 @@ else
|
|||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
cd $XLXINSTDIR
|
cd $XLXINSTDIR
|
||||||
git clone $XLXDREPO
|
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
|
cd $XLXINSTDIR/xlxd/src
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
@@ -95,7 +99,7 @@ fi
|
|||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
echo "Getting the DMRID.dat file... "
|
echo "Getting the DMRID.dat file... "
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
wget -O /xlxd/dmrid.dat $DMRIDURL
|
#wget -O /xlxd/dmrid.dat $DMRIDURL
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
echo "Copying web dashboard files and updating init script... "
|
echo "Copying web dashboard files and updating init script... "
|
||||||
cp -R $XLXINSTDIR/xlxd/dashboard/* /var/www/xlxd/
|
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/
|
chown -R www-data:www-data /xlxd/
|
||||||
a2ensite $XLXDOMAIN
|
a2ensite $XLXDOMAIN
|
||||||
a2dissite 000-default
|
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
|
service xlxd start
|
||||||
systemctl restart apache2
|
systemctl restart apache2
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user