Added Debian 11 support

This commit is contained in:
2021-09-03 12:18:10 +02:00
parent 8c033bf7c8
commit 03638b9ec7
4 changed files with 15 additions and 6 deletions

View File

@@ -9,7 +9,6 @@
#MySQL module specific Var
PHPMyadmin=1
phpmyadminver="5.0.2"
#SMI specific Vars
SMI_config=no
@@ -42,6 +41,11 @@ elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
PKGI="${PKGM} install -y --no-install-recommends"
PKGLIST="apt.pkg.list"
shortdist=deb10
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"11"* ]]; then
PKGM="$APTMODE"
PKGI="${PKGM} install -y --no-install-recommends"
PKGLIST="apt.pkg.list"
shortdist=deb11
elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
PKGM="dnf"
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"

View File

@@ -9,7 +9,7 @@ rm -rf /etc/mysql/ /etc/my.cnf.d/ /etc/my.cnf
mkdir /etc/mysql/
touch /etc/mysql/my.cnf.fallback
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/MySQL/mysqld-V8.cnf -o /etc/mysql/my.cnf
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] || [ "$shortdist" = "deb11" ] ; then
MYSQLSNAME=mysql
systemctl stop $MYSQLSNAME
sed -i 's#MySQLlog#/var/log/mysql/error.log#g' /etc/mysql/my.cnf

View File

@@ -1,6 +1,11 @@
###########################
# MySQL 8.0 Installer #
###########################
#####################################
# MySQL 8.0 Installer #
# #
# DO NOT USE! #
# #
# Deprecated, for legacy use only #
# replaced by `Mysql-ModInst.sh` #
#####################################
##-----------------##

View File

@@ -2,7 +2,7 @@ mrepo=https://git.ictmaatwerk.com/VPS-scripts/MySQL
mbranch=master
if [ -z ${password+x} ]; then echo 'Error $password is not set'; fi
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] || [ "$shortdist" = "deb11" ] ; then
if [ -z ${DEBIAN_FRONTEND+x} ]; then echo 'dpkg env not set' > $OUTPUT 2>&1 ; else CurDebFrond="$DEBIAN_FRONTEND"; fi #checking and saving DEBIAN_FRONTEND
export DEBIAN_FRONTEND=noninteractive