Split gpg key if social key management is enabled
This commit is contained in:
parent
59ba8d3c1b
commit
f7dc604b23
|
@ -6602,6 +6602,14 @@ function create_private_mailing_list {
|
||||||
echo 'create_private_mailing_list' >> $COMPLETION_FILE
|
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 {
|
function import_email {
|
||||||
if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" ]]; then
|
if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" ]]; then
|
||||||
return
|
return
|
||||||
|
@ -6613,6 +6621,7 @@ function import_email {
|
||||||
create_restore_script
|
create_restore_script
|
||||||
backup_to_friends_servers
|
backup_to_friends_servers
|
||||||
intrusion_detection
|
intrusion_detection
|
||||||
|
split_gpg_key_into_fragments
|
||||||
echo ''
|
echo ''
|
||||||
echo "$EMAIL_COMPLETE_MSG"
|
echo "$EMAIL_COMPLETE_MSG"
|
||||||
if [ -d $USB_MOUNT ]; then
|
if [ -d $USB_MOUNT ]; then
|
||||||
|
@ -6640,6 +6649,7 @@ function import_email {
|
||||||
create_restore_script
|
create_restore_script
|
||||||
backup_to_friends_servers
|
backup_to_friends_servers
|
||||||
intrusion_detection
|
intrusion_detection
|
||||||
|
split_gpg_key_into_fragments
|
||||||
# unmount any attached usb drive
|
# unmount any attached usb drive
|
||||||
echo ''
|
echo ''
|
||||||
echo "$EMAIL_COMPLETE_MSG"
|
echo "$EMAIL_COMPLETE_MSG"
|
||||||
|
@ -7000,6 +7010,7 @@ function install_owncloud {
|
||||||
create_restore_script
|
create_restore_script
|
||||||
backup_to_friends_servers
|
backup_to_friends_servers
|
||||||
intrusion_detection
|
intrusion_detection
|
||||||
|
split_gpg_key_into_fragments
|
||||||
# unmount any attached usb drive
|
# unmount any attached usb drive
|
||||||
if [ -d $USB_MOUNT ]; then
|
if [ -d $USB_MOUNT ]; then
|
||||||
umount $USB_MOUNT
|
umount $USB_MOUNT
|
||||||
|
@ -7225,6 +7236,7 @@ quit" > $INSTALL_DIR/batch.sql
|
||||||
create_restore_script
|
create_restore_script
|
||||||
backup_to_friends_servers
|
backup_to_friends_servers
|
||||||
intrusion_detection
|
intrusion_detection
|
||||||
|
split_gpg_key_into_fragments
|
||||||
# unmount any attached usb drive
|
# unmount any attached usb drive
|
||||||
if [ -d $USB_MOUNT ]; then
|
if [ -d $USB_MOUNT ]; then
|
||||||
umount $USB_MOUNT
|
umount $USB_MOUNT
|
||||||
|
@ -9382,6 +9394,7 @@ function install_final {
|
||||||
umount $USB_MOUNT
|
umount $USB_MOUNT
|
||||||
rm -rf $USB_MOUNT
|
rm -rf $USB_MOUNT
|
||||||
fi
|
fi
|
||||||
|
split_gpg_key_into_fragments
|
||||||
echo 'install_final' >> $COMPLETION_FILE
|
echo 'install_final' >> $COMPLETION_FILE
|
||||||
echo ''
|
echo ''
|
||||||
echo ' *** Freedombone installation is complete. Rebooting... ***'
|
echo ' *** Freedombone installation is complete. Rebooting... ***'
|
||||||
|
|
Loading…
Reference in New Issue