ReWriten MySQL Module for MariaDB

This commit is contained in:
2021-08-18 14:44:35 +02:00
parent 8c033bf7c8
commit bf5d07169d
7 changed files with 24 additions and 173 deletions

View File

@@ -1,19 +1,6 @@
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MySQL
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MariaDB
mbranch=master
if [ -z ${password+x} ]; then echo 'Error $password is not set'; fi
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; 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
debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"
debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $password"
debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)"
if [ -z ${CurDebFrond+x} ]; then unset DEBIAN_FRONTEND ; else export DEBIAN_FRONTEND=$CurDebFrond; fi #Restore DEBIAN_FRONTEND
fi
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=mysql osrel=$shortdist bash
unset mrepo
unset mbranch