Deletion order
This commit is contained in:
parent
08ca1e149a
commit
53282fff51
|
@ -143,10 +143,10 @@ function interactive_gpg_from_usb {
|
|||
chown -R $MY_USERNAME:$MY_USERNAME $HOME_DIR/.gnupg_old
|
||||
fi
|
||||
echo $'Removing old gpg keys'
|
||||
gpg --homedir=$HOME_DIR/.gnupg --delete-secret-key "$CURR_GPG_BACKUP_ID"
|
||||
gpg --homedir=$HOME_DIR/.gnupg --delete-key "$CURR_GPG_BACKUP_ID"
|
||||
gpg --homedir=$HOME_DIR/.gnupg --delete-secret-key "$CURR_GPG_ID"
|
||||
gpg --homedir=$HOME_DIR/.gnupg --delete-key "$CURR_GPG_ID"
|
||||
gpg --homedir=$HOME_DIR/.gnupg --delete-secret-key "$CURR_GPG_BACKUP_ID"
|
||||
gpg --homedir=$HOME_DIR/.gnupg --delete-secret-key "$CURR_GPG_ID"
|
||||
echo $'Importing master keys'
|
||||
gpg --homedir=$HOME_DIR/.gnupg --allow-secret-key-import --import $USB_MOUNT/.mastergpgkey
|
||||
echo "$BACKUP_DUMMY_PASSWORD" | gpg --batch --passphrase-fd 0 --homedir=$HOME_DIR/.gnupg --allow-secret-key-import --import $USB_MOUNT/.backupgpgkey
|
||||
|
|
Loading…
Reference in New Issue