mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update x.sh
This commit is contained in:
parent
cccb9f902a
commit
b080b5ce36
20
x.sh
20
x.sh
|
|
@ -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 ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue