Additional messages when creating gpg key

This commit is contained in:
Bob Mottram 2017-06-21 20:24:11 +01:00
parent 4c19fb89ba
commit 3dcd54cc6c
1 changed files with 6 additions and 0 deletions

View File

@ -1530,6 +1530,12 @@ function configure_gpg {
gpg_dir=/home/$MY_USERNAME/.gnupg
# if gpg keys directory was previously imported from usb
echo $"GPG keys imported: $GPG_KEYS_IMPORTED"
if [ -d $gpg_dir ]; then
echo $'GPG directory exists'
else
echo $"GPG directory $gpg_dir was not found"
fi
if [[ $GPG_KEYS_IMPORTED == "yes" && -d $gpg_dir ]]; then
echo $'GPG keys were imported'
sed -i "s|keyserver hkp://keys.gnupg.net|keyserver $GPG_KEYSERVER|g" $gpg_dir/gpg.conf