From eaf559195356deb225a4ef4a5dbecbc960faf750 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 16 Mar 2022 21:03:07 -0400 Subject: [PATCH] scripts: install gnupg only when apt-key is needed apt-key depends on gnupg but apt-key itself if not used on modern systems (APT_KEY_TYPE=keyring). Signed-off-by: Simon Deziel --- scripts/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 277aeae4b..0162216f3 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -407,7 +407,7 @@ main() { exit 1 fi export DEBIAN_FRONTEND=noninteractive - if ! type gpg >/dev/null; then + if [ "$APT_KEY_TYPE" = "legacy" ] && ! type gpg >/dev/null; then $SUDO apt-get update $SUDO apt-get install -y gnupg fi