summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-25 20:01:02 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-26 03:46:53 +0000
commitc5871bfd928b8cb7dfb7574c7352f189a1faf788 (patch)
tree457a24db8cea9ed1bf4df2d9ef0f1fd02e198c1a /libexec
parentSupport fetching remote keys from keyserver in container key command. (diff)
downloadcompute-tools-c5871bfd928b8cb7dfb7574c7352f189a1faf788.tar.xz
compute-tools-c5871bfd928b8cb7dfb7574c7352f189a1faf788.zip
Support fetching local keys from keyring library in container key command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/key6
1 files changed, 6 insertions, 0 deletions
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