Use curl instead of gpg to pull repo key

Co-authored-by: Roxedus <me@roxedus.dev>
This commit is contained in:
aptalca
2023-05-21 10:21:16 -04:00
committed by GitHub
parent f0e5e85e82
commit 4c096eb34f
@@ -2,7 +2,7 @@
source /etc/lsb-release
if [ ! -f "/etc/apt/sources.list.d/php8source.list" ]; then
gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/php8.gpg --keyserver keyserver.ubuntu.com --recv-keys 14aa40ec0831756756d7f66c4f4ea0aae5267a6c
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c" | gpg --dearmor | tee /usr/share/keyrings/php8.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/php8.gpg] https://ppa.launchpadcontent.net/ondrej/php/ubuntu ${DISTRIB_CODENAME} main" \
> /etc/apt/sources.list.d/php8source.list
echo "**** Adding php8.2 and composer to package install list ****"