diff --git a/preconf.sh b/preconf.sh index 933c335..cb5a88e 100644 --- a/preconf.sh +++ b/preconf.sh @@ -9,11 +9,7 @@ debconf-set-selections <<< "mysql-community-server mysql-community-server/root-p 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)" -Dist=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"') -DistVersion=$(grep -oP '(?<=^VERSION_CODENAME=).+' /etc/os-release | tr -d '"') - -wget -qO - http://mirror.nxdi.nl/resources/mysql/RPM-GPG-KEY-mysql | apt-key add - -echo "deb http://mirror.nxdi.nl/apt/mysql/"$Dist"/ "$DistVersion" mysql-8.0" >/etc/apt/sources.list.d/mysql.list +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 if [ -z ${CurDebFrond+x} ]; then unset DEBIAN_FRONTEND ; else export DEBIAN_FRONTEND=$CurDebFrond; fi #Restore DEBIAN_FRONTEND unset mrepo