From c5871bfd928b8cb7dfb7574c7352f189a1faf788 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 25 Jul 2021 22:01:02 +0200 Subject: Support fetching local keys from keyring library in container key command. Signed-off-by: Daniel Baumann --- libexec/container/key | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libexec') diff --git a/libexec/container/key b/libexec/container/key index 6c9c8c1..19b7fa9 100755 --- a/libexec/container/key +++ b/libexec/container/key @@ -143,6 +143,12 @@ case "${ACTION}" in if [ -e "${ADD}" ] then gpg --homedir "${KEYS}" --import "${ADD}" + elif [ -e "/usr/share/compute-tools/keys/${ADD}" ] + then + gpg --homedir "${KEYS}" --import "/usr/share/compute-tools/keys/${ADD}" + elif [ -e "/usr/share/compute-tools/keys/${ADD}.pub" ] + then + gpg --homedir "${KEYS}" --import "/usr/share/compute-tools/keys/${ADD}.pub" else gpg --homedir "${KEYS}" --recv "${ADD}" fi -- cgit v1.2.3