Ensure that gpg agent is setup when creating backup key

This commit is contained in:
Bob Mottram 2017-09-18 19:48:06 +01:00
parent c01b22cda2
commit 98adf1ec5a
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ function configure_backup_key {
return return
fi fi
gpg_agent_setup root
gpg_agent_setup $MY_USERNAME
# Generate a GPG key for backups # Generate a GPG key for backups
BACKUP_KEY_EXISTS=$(gpg_key_exists "$MY_USERNAME" "$MY_NAME (backup key)") BACKUP_KEY_EXISTS=$(gpg_key_exists "$MY_USERNAME" "$MY_NAME (backup key)")
if [[ $BACKUP_KEY_EXISTS == "no" ]]; then if [[ $BACKUP_KEY_EXISTS == "no" ]]; then