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:
@@ -1809,12 +1809,9 @@ actions:
|
|||||||
- trigger: post-unpack
|
- trigger: post-unpack
|
||||||
action: |-
|
action: |-
|
||||||
#!/bin/bash
|
#!/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)
|
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
|
mkdir -p /opt/Setup
|
||||||
echo $password > /opt/Setup/TempMysqlPasswd
|
echo $password > /opt/Setup/TempMysqlPasswd
|
||||||
debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"
|
debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"
|
||||||
|
|||||||
Reference in New Issue
Block a user