CT mysql: Using alternate source for the repo gpg key

Oracle/MySQL's has not updated their key in there repo yet, but is availble in on the ubuntu and surfnet.nl gpg servers
This commit is contained in:
2025-10-27 18:44:26 +01:00
parent 85be6a8b36
commit 4b886383c8

View File

@@ -1809,12 +1809,9 @@ actions:
- trigger: post-unpack
action: |-
#!/bin/bash
curl --retry 7 --retry-delay 5 -s "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xb7b3b788a8d3785c" | gpg --dearmor > /usr/share/keyrings/mysql-archive-keyring.gpg
curl --retry 7 --retry-delay 5 -s "https://pgp.surfnet.nl/pks/lookup?op=get&search=0xb7b3b788a8d3785c" | gpg --dearmor > /usr/share/keyrings/mysql-archive-keyring.gpg
#curl --retry 7 --retry-delay 5 -s http://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor > /usr/share/keyrings/mysql-archive-keyring.gpg
password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
apt update
grep ^Package: /var/lib/apt/lists/repo.mysql.com*
ls /var/lib/apt/lists/
sleep 30
mkdir -p /opt/Setup
echo $password > /opt/Setup/TempMysqlPasswd
debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"