Update hblink3-docker-install.sh

Prepare for version sy
This commit is contained in:
M0VUB 2022-02-01 02:24:36 +00:00 committed by GitHub
parent 519f159ea9
commit 853e7a9262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,24 +56,20 @@ INSDIR=/opt/tmp/
HBLINKTMP=/opt/tmp/hblink3 HBLINKTMP=/opt/tmp/hblink3
HBMONDIR=/opt/HBMonv2/ HBMONDIR=/opt/HBMonv2/
HBDIR=/etc/hblink3/ HBDIR=/etc/hblink3/
DEP="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php snapd figlet" DEP="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php7.3 snapd figlet"
DEP1="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php7.4 snapd figlet"
HBGITREPO=https://github.com/ShaYmez/hblink3.git HBGITREPO=https://github.com/ShaYmez/hblink3.git
HBGITMONREPO=https://github.com/ShaYmez/HBMonv2.git HBGITMONREPO=https://github.com/ShaYmez/HBMonv2.git
echo "------------------------------------------------------------------------------"
echo " Installing required software....."
echo "------------------------------------------------------------------------------"
sleep 2
apt-get install -y $DEP
figlet "docker.io"
sleep 2
echo "" echo ""
echo "------------------------------------------------------------------------------" echo "------------------------------------------------------------------------------"
echo "Downloading and installing Docker....." echo "Downloading and installing required software & dependencies....."
echo "------------------------------------------------------------------------------" echo "------------------------------------------------------------------------------"
if [ $VERSION = 10 ]; if [ $VERSION = 10 ];
then then
apt-get install -y $DEP
sleep 2
figlet "docker.io"
curl -sSL https://get.docker.com | sh curl -sSL https://get.docker.com | sh
apt-get install -y docker-compose apt-get install -y docker-compose
systemctl enable docker systemctl enable docker
@ -82,6 +78,9 @@ sleep 2
echo '{ "userland-proxy": false}' > /etc/docker/daemon.json echo '{ "userland-proxy": false}' > /etc/docker/daemon.json
elif [ $VERSION = 11 ]; elif [ $VERSION = 11 ];
then then
apt-get install -y $DEP1
sleep 2
figlet "docker.io"
curl -sSL https://get.docker.com | sh curl -sSL https://get.docker.com | sh
apt-get install -y docker-compose apt-get install -y docker-compose
systemctl enable docker systemctl enable docker