Ensure that gpg agent is setup when creating backup key
This commit is contained in:
parent
c01b22cda2
commit
98adf1ec5a
|
@ -77,6 +77,9 @@ function configure_backup_key {
|
|||
return
|
||||
fi
|
||||
|
||||
gpg_agent_setup root
|
||||
gpg_agent_setup $MY_USERNAME
|
||||
|
||||
# Generate a GPG key for backups
|
||||
BACKUP_KEY_EXISTS=$(gpg_key_exists "$MY_USERNAME" "$MY_NAME (backup key)")
|
||||
if [[ $BACKUP_KEY_EXISTS == "no" ]]; then
|
||||
|
|
Loading…
Reference in New Issue