Skip to content

Commit

Permalink
onie-encrypt.lib - check for gpg2
Browse files Browse the repository at this point in the history
Older versions of the Debian 10 DUE container may not have
had gpg2 installed, so the script checks for that and
suggests a package install.

Signed-off-by: Alex Doyle <[email protected]>
  • Loading branch information
ehdoyle committed Dec 11, 2021
1 parent 3bcffc5 commit 4c8d2b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions encryption/onie-encrypt.lib
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ function fxnGenerateKeys()
echo "#####################################################"

echo "Generating GPG keys."
if [ ! -e /usr/bin/gpg2 ];then
echo "Failed to find /usr/bin/gpg2. Is gnupg2 installed? Exiting."
exit 1
fi
# echo "use-agent" >> ~/.gnupg/gpg.conf
# echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
# echo "allow-loopback-pinentry >> ~/.gnupg/gpg-agent.conf
Expand Down

0 comments on commit 4c8d2b4

Please sign in to comment.