Update 'preconf.sh'

This commit is contained in:
Bram Prieshof
2020-04-30 13:58:07 +02:00
parent 5cef28f6fb
commit 4890b0e2d9

View File

@@ -12,7 +12,7 @@ debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-ove
Dist=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"') Dist=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
DistVersion=$(grep -oP '(?<=^VERSION_CODENAME=).+' /etc/os-release | tr -d '"') DistVersion=$(grep -oP '(?<=^VERSION_CODENAME=).+' /etc/os-release | tr -d '"')
wget -qO - http://repo.mysql.com/RPM-GPG-KEY-mysql | apt-key add - 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 echo "deb http://mirror.nxdi.nl/apt/mysql/"$Dist"/ "$DistVersion" mysql-8.0" >/etc/apt/sources.list.d/mysql.list
if [ -z ${CurDebFrond+x} ]; then unset DEBIAN_FRONTEND ; else export DEBIAN_FRONTEND=$CurDebFrond; fi #Restore DEBIAN_FRONTEND if [ -z ${CurDebFrond+x} ]; then unset DEBIAN_FRONTEND ; else export DEBIAN_FRONTEND=$CurDebFrond; fi #Restore DEBIAN_FRONTEND