Update xlxd-debian-installer.sh

This commit is contained in:
Ben 2020-10-30 16:50:38 -04:00 committed by GitHub
parent 0ae422fb3e
commit 541d247aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ DMRIDURL=http://xlxapi.rlx.lu/api/exportdmr.php
WEBDIR=/var/www/xlxd
XLXINSTDIR=/root/reflector-install-files/xlxd
DEP="git build-essential apache2 php libapache2-mod-php php7.0-mbstring"
DEP2="git build-essential apache2 php libapache2-mod-php php7.3-mbstring"
VERSION=$(sed 's/\..*//' /etc/debian_version)
clear
echo ""
echo "XLX uses 3 digit numbers for its reflectors. For example: 032, 999, 099."
@ -45,7 +47,13 @@ echo "--------------------------------------------------------------------------
mkdir -p $XLXINSTDIR
mkdir -p $WEBDIR
apt-get update
apt-get -y install $DEP
if [ $VERSION = 9 ]
then
apt-get -y install $DEP
elif [ $VERSION = 10 ]
then
apt-get -y install $DEP2
fi
a2enmod php7.0
echo "------------------------------------------------------------------------------"
if [ -e $XLXINSTDIR/xlxd/src/xlxd ]