Ensure that libgfshare is installed

This commit is contained in:
Bob Mottram 2015-07-03 23:49:44 +01:00
parent 0f4039d608
commit ab0874427e
1 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,7 @@ function interactive_gpg_from_remote {
fi fi
# try to recover the key from the servers # try to recover the key from the servers
apt-get -y install libgfshare-bin gnupg
freedombone-recoverkey -u $MY_USERNAME -l $REMOTE_SERVERS_LIST freedombone-recoverkey -u $MY_USERNAME -l $REMOTE_SERVERS_LIST
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
dialog --title "Encryption keys" --msgbox 'Your key could not be recovered' 6 70 dialog --title "Encryption keys" --msgbox 'Your key could not be recovered' 6 70
@ -282,6 +283,7 @@ function reconstruct_key {
dialog --title "Encryption keys" --msgbox 'Not enough fragments to reconstruct the key' 6 70 dialog --title "Encryption keys" --msgbox 'Not enough fragments to reconstruct the key' 6 70
exit 7348 exit 7348
fi fi
apt-get -y install libgfshare-bin gnupg
gfcombine /home/$MY_USERNAME/.gnupg_fragments/keyshare* gfcombine /home/$MY_USERNAME/.gnupg_fragments/keyshare*
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
dialog --title "Encryption keys" --msgbox 'Unable to reconstruct the key' 6 70 dialog --title "Encryption keys" --msgbox 'Unable to reconstruct the key' 6 70