Main: Added inital support for Debian 11

Added Debian 11 as supported os
Added deb11 to all places were deb10 was in a if statement

Temporarily replaced MySQL with MariaDB,
since the MySQL repo is not yet avalible
This commit is contained in:
2021-08-19 12:47:01 +02:00
parent 02e644ba60
commit c9abe992e0
17 changed files with 37 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ fi
#Git-repo
repo=https://git.ictmaatwerk.com/VPS-scripts/Web-V2
branch=master
branch=Debian11Testing
branchtype=branch #=branch for branch and =tag for release
CompatVer=2
#Installer-config
@@ -64,6 +64,15 @@ elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
PKGI="${PKGM} install -y --no-install-recommends"
PKGLIST="apt"
shortdist=deb10
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"11"* ]]; then
PKGM="$APTMODE"
PKGUC="$PKGM update"
PKGUP="$PKGM upgrade -y"
PKGI="${PKGM} install -y --no-install-recommends"
PKGLIST="apt"
shortdist=deb11
echo "Support for this os is stil being developed, Exiting"
exit
elif [ "$(grep -oP '(?<=^PLATFORM_ID=).+' /etc/os-release | tr -d '"')" = "platform:el8" ]; then
PKGM="dnf"
PKGUC="$PKGM check-update --refresh"
@@ -99,7 +108,8 @@ fi
# Always-on modules #
##---------------------##
aonoption="/MySQL/"
#Temporarily for Testing since not avalible#aonoption="/MySQL/"
aonoption="/MariaDB/" #Temporarily replaceing MySQL
aonoption="$aonoption /Unattended-Security-Updates/"
aonoption="$aonoption /Backup-Util/"
aonoption="$aonoption /AcmeSH/"