From ab0874427e4644dc328aad41b20dc2b24809f81f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jul 2015 23:49:44 +0100 Subject: [PATCH] Ensure that libgfshare is installed --- src/freedombone-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-config b/src/freedombone-config index cf80ef54..5839efef 100755 --- a/src/freedombone-config +++ b/src/freedombone-config @@ -260,6 +260,7 @@ function interactive_gpg_from_remote { fi # try to recover the key from the servers + apt-get -y install libgfshare-bin gnupg freedombone-recoverkey -u $MY_USERNAME -l $REMOTE_SERVERS_LIST if [ ! "$?" = "0" ]; then 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 exit 7348 fi + apt-get -y 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