diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-07-25 20:01:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-07-26 03:46:53 +0000 |
commit | c5871bfd928b8cb7dfb7574c7352f189a1faf788 (patch) | |
tree | 457a24db8cea9ed1bf4df2d9ef0f1fd02e198c1a /libexec/container/key | |
parent | Support fetching remote keys from keyserver in container key command. (diff) | |
download | compute-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 'libexec/container/key')
-rwxr-xr-x | libexec/container/key | 6 |
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 |