|
@@ -670,20 +670,6 @@ function hubzilla_renew_cert {
|
670
|
670
|
fi
|
671
|
671
|
}
|
672
|
672
|
|
673
|
|
-function hubzilla_restore {
|
674
|
|
- dialog --title $"Restore hubzilla from USB backup" \
|
675
|
|
- --backtitle $"Freedombone Control Panel" \
|
676
|
|
- --yesno $"\nInsert your USB backup drive and select 'yes' to continue" 16 60
|
677
|
|
- sel=$?
|
678
|
|
- case $sel in
|
679
|
|
- 1) return;;
|
680
|
|
- 255) return;;
|
681
|
|
- esac
|
682
|
|
- clear
|
683
|
|
- echo $'Enter your backup drive password:'
|
684
|
|
- ${PROJECT_NAME}-restore-local $USB_DRIVE hubzilla
|
685
|
|
-}
|
686
|
|
-
|
687
|
673
|
function hubzilla_channel_directory_server {
|
688
|
674
|
if ! grep -q "Hubzilla domain" $COMPLETION_FILE; then
|
689
|
675
|
dialog --title $"Hubzilla channel directory server" \
|
|
@@ -979,14 +965,13 @@ function menu_backup_restore {
|
979
|
965
|
1 $"Backup data to USB drive" off \
|
980
|
966
|
2 $"Restore GPG key from USB keydrive" off \
|
981
|
967
|
3 $"Restore data from USB drive" off \
|
982
|
|
- 4 $"Restore Hubzilla data from USB drive" off \
|
983
|
|
- 5 $"Configure remote backups" off \
|
984
|
|
- 6 $"Restore from remote backup" off \
|
985
|
|
- 7 $"Backup GPG key to USB (master keydrive)" off \
|
986
|
|
- 8 $"Backup GPG key to USB (fragment keydrive)" off \
|
987
|
|
- 9 $"Format a USB drive (LUKS encrypted)" off \
|
988
|
|
- 10 $"Remove backups from a USB drive" off \
|
989
|
|
- 11 $"Back to main menu" on 2> $data
|
|
968
|
+ 4 $"Configure remote backups" off \
|
|
969
|
+ 5 $"Restore from remote backup" off \
|
|
970
|
+ 6 $"Backup GPG key to USB (master keydrive)" off \
|
|
971
|
+ 7 $"Backup GPG key to USB (fragment keydrive)" off \
|
|
972
|
+ 8 $"Format a USB drive (LUKS encrypted)" off \
|
|
973
|
+ 9 $"Remove backups from a USB drive" off \
|
|
974
|
+ 10 $"Back to main menu" on 2> $data
|
990
|
975
|
sel=$?
|
991
|
976
|
case $sel in
|
992
|
977
|
1) break;;
|
|
@@ -996,14 +981,13 @@ function menu_backup_restore {
|
996
|
981
|
1) backup_data;;
|
997
|
982
|
2) restore_gpg_key;;
|
998
|
983
|
3) restore_data;;
|
999
|
|
- 4) hubzilla_restore;;
|
1000
|
|
- 5) configure_remote_backups;;
|
1001
|
|
- 6) restore_data_remote;;
|
1002
|
|
- 7) create_keydrive_master;;
|
1003
|
|
- 8) create_keydrive_fragment;;
|
1004
|
|
- 9) format_drive;;
|
1005
|
|
- 10) remove_backups;;
|
1006
|
|
- 11) break;;
|
|
984
|
+ 4) configure_remote_backups;;
|
|
985
|
+ 5) restore_data_remote;;
|
|
986
|
+ 6) create_keydrive_master;;
|
|
987
|
+ 7) create_keydrive_fragment;;
|
|
988
|
+ 8) format_drive;;
|
|
989
|
+ 9) remove_backups;;
|
|
990
|
+ 10) break;;
|
1007
|
991
|
esac
|
1008
|
992
|
done
|
1009
|
993
|
}
|
|
@@ -1072,20 +1056,18 @@ function menu_hubzilla {
|
1072
|
1056
|
dialog --backtitle $"Freedombone Control Panel" \
|
1073
|
1057
|
--title $"Hubzilla" \
|
1074
|
1058
|
--radiolist $"Choose an operation:" 13 70 4 \
|
1075
|
|
- 1 $"Restore from usb backup" off \
|
1076
|
|
- 2 $"Set channel directory server" off \
|
1077
|
|
- 3 $"Renew SSL certificate" off \
|
1078
|
|
- 4 $"Back to main menu" on 2> $data
|
|
1059
|
+ 1 $"Set channel directory server" off \
|
|
1060
|
+ 2 $"Renew SSL certificate" off \
|
|
1061
|
+ 3 $"Back to main menu" on 2> $data
|
1079
|
1062
|
sel=$?
|
1080
|
1063
|
case $sel in
|
1081
|
1064
|
1) break;;
|
1082
|
1065
|
255) break;;
|
1083
|
1066
|
esac
|
1084
|
1067
|
case $(cat $data) in
|
1085
|
|
- 1) hubzilla_restore;;
|
1086
|
|
- 2) hubzilla_channel_directory_server;;
|
1087
|
|
- 3) hubzilla_renew_cert;;
|
1088
|
|
- 4) break;;
|
|
1068
|
+ 1) hubzilla_channel_directory_server;;
|
|
1069
|
+ 2) hubzilla_renew_cert;;
|
|
1070
|
+ 3) break;;
|
1089
|
1071
|
esac
|
1090
|
1072
|
done
|
1091
|
1073
|
}
|