mirror of
https://github.com/ShaYmez/xlxd-debian-installer.git
synced 2024-11-21 19:02:34 -05:00
Update xlxd-debian-installer.sh
This commit is contained in:
parent
0ae422fb3e
commit
541d247aa2
@ -23,6 +23,8 @@ 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
|
||||||
DEP="git build-essential apache2 php libapache2-mod-php php7.0-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
|
clear
|
||||||
echo ""
|
echo ""
|
||||||
echo "XLX uses 3 digit numbers for its reflectors. For example: 032, 999, 099."
|
echo "XLX uses 3 digit numbers for its reflectors. For example: 032, 999, 099."
|
||||||
@ -45,7 +47,13 @@ echo "--------------------------------------------------------------------------
|
|||||||
mkdir -p $XLXINSTDIR
|
mkdir -p $XLXINSTDIR
|
||||||
mkdir -p $WEBDIR
|
mkdir -p $WEBDIR
|
||||||
apt-get update
|
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
|
a2enmod php7.0
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
if [ -e $XLXINSTDIR/xlxd/src/xlxd ]
|
if [ -e $XLXINSTDIR/xlxd/src/xlxd ]
|
||||||
|
Loading…
Reference in New Issue
Block a user