Import entire gpg keyring

This commit is contained in:
Bob Mottram 2014-09-23 19:00:00 +01:00
parent b159d80aa9
commit 38c28dc647
1 changed files with 5 additions and 0 deletions

View File

@ -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