Update xlxd-debian-installer.sh
updated APPS for all debian flavors.
Этот коммит содержится в:
@@ -12,7 +12,7 @@ fi
|
|||||||
if [ ! -e "/etc/debian_version" ]
|
if [ ! -e "/etc/debian_version" ]
|
||||||
then
|
then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is only tested in Debian 9 and x64 cpu Arch. "
|
echo "This script is only tested on Debian and x64 CPU Arch. but XLX will work on most ANY Linux distro. "
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
DIRDIR=$(pwd)
|
DIRDIR=$(pwd)
|
||||||
@@ -25,6 +25,7 @@ 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"
|
DEP2="git build-essential apache2 php libapache2-mod-php php7.3-mbstring"
|
||||||
DEP3="git build-essential apache2 php libapache2-mod-php php7.4-mbstring"
|
DEP3="git build-essential apache2 php libapache2-mod-php php7.4-mbstring"
|
||||||
|
APPS="git git-core apache2 php libapache2-mod-php php-cli php-xml php-mbstring php-curl build-essential"
|
||||||
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||||
clear
|
clear
|
||||||
echo ""
|
echo ""
|
||||||
@@ -48,17 +49,18 @@ echo "--------------------------------------------------------------------------
|
|||||||
mkdir -p $XLXINSTDIR
|
mkdir -p $XLXINSTDIR
|
||||||
mkdir -p $WEBDIR
|
mkdir -p $WEBDIR
|
||||||
apt-get update
|
apt-get update
|
||||||
if [ $VERSION = 9 ]
|
apt-get install $APPS
|
||||||
then
|
#if [ $VERSION = 9 ]
|
||||||
apt-get -y install $DEP
|
#then
|
||||||
a2enmod php7.0
|
# apt-get -y install $DEP
|
||||||
elif [ $VERSION = 10 ]
|
# a2enmod php7.0
|
||||||
then
|
#elif [ $VERSION = 10 ]
|
||||||
apt-get -y install $DEP2
|
#then
|
||||||
elif [ $VERSION = 11 ]
|
# apt-get -y install $DEP2
|
||||||
then
|
#elif [ $VERSION = 11 ]
|
||||||
apt-get -y install $DEP3
|
#then
|
||||||
fi
|
# apt-get -y install $DEP3
|
||||||
|
#fi
|
||||||
|
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
if [ -e $XLXINSTDIR/xlxd/src/xlxd ]
|
if [ -e $XLXINSTDIR/xlxd/src/xlxd ]
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user