From 8ac356f5757f7daba51415df1bb10db86fb9b33a Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Thu, 23 Feb 2023 09:55:23 +0100 Subject: Select gpg based on Dist --- scripts/update-trust | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/update-trust') diff --git a/scripts/update-trust b/scripts/update-trust index 9ff7e78..3485bdf 100755 --- a/scripts/update-trust +++ b/scripts/update-trust @@ -3,7 +3,11 @@ export GNUPGHOME=/etc/metadata/gnupg mkdir -p $GNUPGHOME chmod 0700 $GNUPGHOME -export GPG=gpg2 +if [ $(lsb_release -is) == 'Debian' ]; then + export GPG=gpg +else + export GPG=gpg2 +fi # Install new keys discovered in the keys directory for k in keys/*.pub; do -- cgit v1.2.3