From 38c28dc647872bb8cd194be291b9b5255fbf7b62 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Sep 2014 19:00:00 +0100 Subject: [PATCH] Import entire gpg keyring --- install-freedombone.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 030bfe56..5d7a350f 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -154,6 +154,11 @@ function search_for_attached_usb_drive { if [ -d /media/usb/Maildir ]; then IMPORT_MAILDIR=/media/usb/Maildir fi + if [ -d /media/usb/.gnupg ]; then + cp -r /media/usb/.gnupg /home/$MY_USERNAME/.gnupg + chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.gnupg + rm -rf /media/usb/.gnupg + fi if [ -f /media/usb/private_key.gpg ]; then MY_GPG_PRIVATE_KEY=/media/usb/private_key.gpg fi