Added Debian 11 support
This commit is contained in:
@@ -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"
|
||||
|
||||
2
conf.sh
2
conf.sh
@@ -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
|
||||
|
||||
11
mysql-8.0.sh
11
mysql-8.0.sh
@@ -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` #
|
||||
#####################################
|
||||
|
||||
|
||||
##-----------------##
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user