From 39e2d67984acd0bd92d9a002d54638dae48b4ee6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 29 Nov 2015 13:14:15 +0000 Subject: [PATCH] Show public and private gpg key filenames during install --- src/freedombone | 3 +++ src/freedombone-config | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/freedombone b/src/freedombone index dff2ba3b..288b730f 100755 --- a/src/freedombone +++ b/src/freedombone @@ -7476,6 +7476,9 @@ function configure_gpg { chmod 600 /home/$MY_USERNAME/.gnupg/* if [[ $MY_GPG_PUBLIC_KEY && $MY_GPG_PRIVATE_KEY ]]; then + echo "Public key: $MY_GPG_PUBLIC_KEY" + echo "Private key: $MY_GPG_PRIVATE_KEY" + # use your existing GPG keys which were exported if [ ! -f $MY_GPG_PUBLIC_KEY ]; then echo "GPG public key file $MY_GPG_PUBLIC_KEY was not found" diff --git a/src/freedombone-config b/src/freedombone-config index 59372ea8..4607ed06 100755 --- a/src/freedombone-config +++ b/src/freedombone-config @@ -474,9 +474,12 @@ function interactive_gpg { 255) exit 2;; esac case $(cat $data) in - 1) return;; + 1) if [ -d /home/$MY_USERNAME/.gnupg ]; then + rm -rf /home/$MY_USERNAME/.gnupg + fi + break;; 2) interactive_gpg_from_usb - return;; + break;; 3) interactive_gpg_from_remote if [ ! "$?" = "0" ]; then GPG_CONFIGURED="no"