Bob Mottram 9 years ago
parent
commit
516f6f09c2
1 changed files with 20 additions and 38 deletions
  1. 20
    38
      src/freedombone-controlpanel

+ 20
- 38
src/freedombone-controlpanel View File

670
     fi
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
 function hubzilla_channel_directory_server {
673
 function hubzilla_channel_directory_server {
688
     if ! grep -q "Hubzilla domain" $COMPLETION_FILE; then
674
     if ! grep -q "Hubzilla domain" $COMPLETION_FILE; then
689
        dialog --title $"Hubzilla channel directory server" \
675
        dialog --title $"Hubzilla channel directory server" \
979
                1 $"Backup data to USB drive" off \
965
                1 $"Backup data to USB drive" off \
980
                2 $"Restore GPG key from USB keydrive" off \
966
                2 $"Restore GPG key from USB keydrive" off \
981
                3 $"Restore data from USB drive" off \
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
         sel=$?
975
         sel=$?
991
         case $sel in
976
         case $sel in
992
             1) break;;
977
             1) break;;
996
             1) backup_data;;
981
             1) backup_data;;
997
             2) restore_gpg_key;;
982
             2) restore_gpg_key;;
998
             3) restore_data;;
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
         esac
991
         esac
1008
     done
992
     done
1009
 }
993
 }
1072
         dialog --backtitle $"Freedombone Control Panel" \
1056
         dialog --backtitle $"Freedombone Control Panel" \
1073
                --title $"Hubzilla" \
1057
                --title $"Hubzilla" \
1074
                --radiolist $"Choose an operation:" 13 70 4 \
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
         sel=$?
1062
         sel=$?
1080
         case $sel in
1063
         case $sel in
1081
             1) break;;
1064
             1) break;;
1082
             255) break;;
1065
             255) break;;
1083
         esac
1066
         esac
1084
         case $(cat $data) in
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
         esac
1071
         esac
1090
     done
1072
     done
1091
 }
1073
 }