Fixing broken gpg key search

This commit is contained in:
Bob Mottram 2018-02-05 10:14:00 +00:00
parent c8ee6129d0
commit 00429b3989
2 changed files with 4 additions and 2 deletions

View File

@ -1365,7 +1365,8 @@ function configure_gpg {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return return
fi fi
apt-get -yq install gnupg apt-get -yq install gnupg dirmngr
printf '%%Assuan%%\nsocket=/dev/shm/S.dirmngr\n' > ~/.gnupg/S.dirmngr
check_email_address_exists check_email_address_exists

View File

@ -70,7 +70,8 @@ function configure_backup_key {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return return
fi fi
apt-get -yq install gnupg apt-get -yq install gnupg dirmngr
printf '%%Assuan%%\nsocket=/dev/shm/S.dirmngr\n' > ~/.gnupg/S.dirmngr
BACKUP_KEY_EXISTS=$(gpg_key_exists "root" "$MY_NAME (backup key)") BACKUP_KEY_EXISTS=$(gpg_key_exists "root" "$MY_NAME (backup key)")
if [[ $BACKUP_KEY_EXISTS == "yes" ]]; then if [[ $BACKUP_KEY_EXISTS == "yes" ]]; then