Update sury apt key

This commit is contained in:
Tagada 2024-02-16 19:17:48 +01:00 committed by GitHub
parent ec4b1e9f96
commit 707180da43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,6 +69,12 @@ do_post_regen() {
wget --timeout 900 --quiet "https://packages.sury.org/php/apt.gpg" --output-document=- | gpg --dearmor >"/etc/apt/trusted.gpg.d/extra_php_version.gpg"
fi
# Update sury apt key if 95BD4743 is present
if apt-key list | grep -q "95BD4743"; then
echo "Updating sury apt key..."
apt-key del 95BD4743; wget -nv -O - "https://packages.sury.org/php/apt.gpg" | apt-key add -
fi
# Make sure php7.4 is the default version when using php in cli
if test -e /usr/bin/php$YNH_DEFAULT_PHP_VERSION
then