diff --git a/xlxd-debian-installer.sh b/xlxd-debian-installer.sh index 8b578e9..c02786a 100755 --- a/xlxd-debian-installer.sh +++ b/xlxd-debian-installer.sh @@ -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 ]