|  | @@ -6602,6 +6602,14 @@ function create_private_mailing_list {
 | 
	
		
			
			| 6602 | 6602 |    echo 'create_private_mailing_list' >> $COMPLETION_FILE
 | 
	
		
			
			| 6603 | 6603 |  }
 | 
	
		
			
			| 6604 | 6604 |  
 | 
	
		
			
			|  | 6605 | +function split_gpg_key_into_fragments {
 | 
	
		
			
			|  | 6606 | +  # split the gpg key into fragments if social key management is enabled
 | 
	
		
			
			|  | 6607 | +  if [[ $ENABLE_SOCIAL_KEY_MANAGEMENT == "yes" ]]; then
 | 
	
		
			
			|  | 6608 | +      echo 'Splitting GPG key. You may need to enter your passphrase.'
 | 
	
		
			
			|  | 6609 | +      freedombone-splitkey -u $MY_USERNAME -e $MY_EMAIL_ADDRESS
 | 
	
		
			
			|  | 6610 | +  fi
 | 
	
		
			
			|  | 6611 | +}
 | 
	
		
			
			|  | 6612 | +
 | 
	
		
			
			| 6605 | 6613 |  function import_email {
 | 
	
		
			
			| 6606 | 6614 |    if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" ]]; then
 | 
	
		
			
			| 6607 | 6615 |        return
 | 
	
	
		
			
			|  | @@ -6613,6 +6621,7 @@ function import_email {
 | 
	
		
			
			| 6613 | 6621 |            create_restore_script
 | 
	
		
			
			| 6614 | 6622 |            backup_to_friends_servers
 | 
	
		
			
			| 6615 | 6623 |            intrusion_detection
 | 
	
		
			
			|  | 6624 | +          split_gpg_key_into_fragments
 | 
	
		
			
			| 6616 | 6625 |            echo ''
 | 
	
		
			
			| 6617 | 6626 |            echo "$EMAIL_COMPLETE_MSG"
 | 
	
		
			
			| 6618 | 6627 |            if [ -d $USB_MOUNT ]; then
 | 
	
	
		
			
			|  | @@ -6640,6 +6649,7 @@ function import_email {
 | 
	
		
			
			| 6640 | 6649 |        create_restore_script
 | 
	
		
			
			| 6641 | 6650 |        backup_to_friends_servers
 | 
	
		
			
			| 6642 | 6651 |        intrusion_detection
 | 
	
		
			
			|  | 6652 | +      split_gpg_key_into_fragments
 | 
	
		
			
			| 6643 | 6653 |        # unmount any attached usb drive
 | 
	
		
			
			| 6644 | 6654 |        echo ''
 | 
	
		
			
			| 6645 | 6655 |        echo "$EMAIL_COMPLETE_MSG"
 | 
	
	
		
			
			|  | @@ -7000,6 +7010,7 @@ function install_owncloud {
 | 
	
		
			
			| 7000 | 7010 |            create_restore_script
 | 
	
		
			
			| 7001 | 7011 |            backup_to_friends_servers
 | 
	
		
			
			| 7002 | 7012 |            intrusion_detection
 | 
	
		
			
			|  | 7013 | +          split_gpg_key_into_fragments
 | 
	
		
			
			| 7003 | 7014 |            # unmount any attached usb drive
 | 
	
		
			
			| 7004 | 7015 |            if [ -d $USB_MOUNT ]; then
 | 
	
		
			
			| 7005 | 7016 |                umount $USB_MOUNT
 | 
	
	
		
			
			|  | @@ -7225,6 +7236,7 @@ quit" > $INSTALL_DIR/batch.sql
 | 
	
		
			
			| 7225 | 7236 |        create_restore_script
 | 
	
		
			
			| 7226 | 7237 |        backup_to_friends_servers
 | 
	
		
			
			| 7227 | 7238 |        intrusion_detection
 | 
	
		
			
			|  | 7239 | +      split_gpg_key_into_fragments
 | 
	
		
			
			| 7228 | 7240 |        # unmount any attached usb drive
 | 
	
		
			
			| 7229 | 7241 |        if [ -d $USB_MOUNT ]; then
 | 
	
		
			
			| 7230 | 7242 |            umount $USB_MOUNT
 | 
	
	
		
			
			|  | @@ -9382,6 +9394,7 @@ function install_final {
 | 
	
		
			
			| 9382 | 9394 |        umount $USB_MOUNT
 | 
	
		
			
			| 9383 | 9395 |        rm -rf $USB_MOUNT
 | 
	
		
			
			| 9384 | 9396 |    fi
 | 
	
		
			
			|  | 9397 | +  split_gpg_key_into_fragments
 | 
	
		
			
			| 9385 | 9398 |    echo 'install_final' >> $COMPLETION_FILE
 | 
	
		
			
			| 9386 | 9399 |    echo ''
 | 
	
		
			
			| 9387 | 9400 |    echo '  *** Freedombone installation is complete. Rebooting... ***'
 |