Split gpg key if social key management is enabled

This commit is contained in:
Bob Mottram 2015-07-05 22:10:12 +01:00
parent 59ba8d3c1b
commit f7dc604b23
1 changed files with 13 additions and 0 deletions

View File

@ -6602,6 +6602,14 @@ function create_private_mailing_list {
echo 'create_private_mailing_list' >> $COMPLETION_FILE
}
function split_gpg_key_into_fragments {
# split the gpg key into fragments if social key management is enabled
if [[ $ENABLE_SOCIAL_KEY_MANAGEMENT == "yes" ]]; then
echo 'Splitting GPG key. You may need to enter your passphrase.'
freedombone-splitkey -u $MY_USERNAME -e $MY_EMAIL_ADDRESS
fi
}
function import_email {
if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" ]]; then
return
@ -6613,6 +6621,7 @@ function import_email {
create_restore_script
backup_to_friends_servers
intrusion_detection
split_gpg_key_into_fragments
echo ''
echo "$EMAIL_COMPLETE_MSG"
if [ -d $USB_MOUNT ]; then
@ -6640,6 +6649,7 @@ function import_email {
create_restore_script
backup_to_friends_servers
intrusion_detection
split_gpg_key_into_fragments
# unmount any attached usb drive
echo ''
echo "$EMAIL_COMPLETE_MSG"
@ -7000,6 +7010,7 @@ function install_owncloud {
create_restore_script
backup_to_friends_servers
intrusion_detection
split_gpg_key_into_fragments
# unmount any attached usb drive
if [ -d $USB_MOUNT ]; then
umount $USB_MOUNT
@ -7225,6 +7236,7 @@ quit" > $INSTALL_DIR/batch.sql
create_restore_script
backup_to_friends_servers
intrusion_detection
split_gpg_key_into_fragments
# unmount any attached usb drive
if [ -d $USB_MOUNT ]; then
umount $USB_MOUNT
@ -9382,6 +9394,7 @@ function install_final {
umount $USB_MOUNT
rm -rf $USB_MOUNT
fi
split_gpg_key_into_fragments
echo 'install_final' >> $COMPLETION_FILE
echo ''
echo ' *** Freedombone installation is complete. Rebooting... ***'