Titles
This commit is contained in:
parent
37e3818ad7
commit
5a8d9de8e1
|
@ -927,19 +927,19 @@ function reconstruct_key {
|
|||
cd /home/$MY_USERNAME/.gnupg_fragments
|
||||
no_of_shares=$(ls -afq keyshare.asc.* | wc -l)
|
||||
if (( no_of_shares < 4 )); then
|
||||
dialog --title $"Encryption keys" --msgbox $'Not enough fragments to reconstruct the key' 6 70
|
||||
dialog --title $"Recover Encryption Keys" --msgbox $'Not enough fragments to reconstruct the key' 6 70
|
||||
exit 7348
|
||||
fi
|
||||
apt-get -yq install libgfshare-bin gnupg
|
||||
gfcombine /home/$MY_USERNAME/.gnupg_fragments/keyshare*
|
||||
if [ ! "$?" = "0" ]; then
|
||||
dialog --title $"Encryption keys" --msgbox $'Unable to reconstruct the key' 6 70
|
||||
dialog --title $"Recover Encryption Keys" --msgbox $'Unable to reconstruct the key' 6 70
|
||||
exit 7348
|
||||
fi
|
||||
|
||||
KEYS_FILE=/home/$MY_USERNAME/.gnupg_fragments/keyshare.asc
|
||||
if [ ! -f $KEYS_FILE ]; then
|
||||
dialog --title $"Encryption keys" --msgbox $'Unable to reconstruct the key' 6 70
|
||||
dialog --title $"Recover Encryption Keys" --msgbox $'Unable to reconstruct the key' 6 70
|
||||
fi
|
||||
|
||||
su -c "gpg --allow-secret-key-import --import $KEYS_FILE" - $MY_USERNAME
|
||||
|
@ -951,7 +951,7 @@ function reconstruct_key {
|
|||
fi
|
||||
shred -zu $KEYS_FILE
|
||||
|
||||
dialog --title $"Encryption keys" --msgbox $'Key has been reconstructed' 6 70
|
||||
dialog --title $"Recover Encryption Keys" --msgbox $'Key has been reconstructed' 6 70
|
||||
}
|
||||
|
||||
function interactive_gpg_from_usb {
|
||||
|
|
Loading…
Reference in New Issue