Update x.sh

This commit is contained in:
hp3icc 2021-10-27 19:29:59 -05:00 committed by GitHub
parent cccb9f902a
commit b080b5ce36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

20
x.sh
View File

@ -22,8 +22,8 @@ XLXDREPO=https://github.com/LX3JL/xlxd.git
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"
## 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 ""
@ -47,14 +47,14 @@ echo "--------------------------------------------------------------------------
mkdir -p $XLXINSTDIR
mkdir -p $WEBDIR
apt-get update
if [ $VERSION = 9 ]
then
apt-get -y install $DEP
a2enmod php7.0
elif [ $VERSION = 10 ]
then
apt-get -y install $DEP2
fi
## if [ $VERSION = 9 ]
## then
## apt-get -y install $DEP
## a2enmod php7.0
## elif [ $VERSION = 10 ]
## then
## apt-get -y install $DEP2
## fi
echo "------------------------------------------------------------------------------"
if [ -e $XLXINSTDIR/xlxd/src/xlxd ]