Преглед на файлове

Since repos are included in the image, deprecate mirrors

Bob Mottram преди 7 години
родител
ревизия
e5db89ecb6
променени са 5 файла, в които са добавени 27 реда и са изтрити 23 реда
  1. 3
    1
      src/freedombone-config
  2. 20
    18
      src/freedombone-controlpanel
  3. 1
    1
      src/freedombone-upgrade
  4. 1
    1
      src/freedombone-utils-repos
  5. 2
    2
      src/freedombone-utils-selector

+ 3
- 1
src/freedombone-config Целия файл

@@ -862,6 +862,8 @@ do
862 862
 done
863 863
 
864 864
 function set_main_repo {
865
+    return
866
+
865 867
     data=$(tempfile 2>/dev/null)
866 868
     trap "rm -f $data" 0 1 2 5 15
867 869
     dialog --backtitle $"Freedombone Control Panel" \
@@ -1123,7 +1125,7 @@ function interactive_config {
1123 1125
     dialog --title $"Freedombone" --msgbox "$INITIAL_MESSAGE" 15 50
1124 1126
 
1125 1127
     #choose_system_variant
1126
-    set_main_repo
1128
+    #set_main_repo
1127 1129
     choose_username
1128 1130
     choose_full_name
1129 1131
     choose_social_key_management

+ 20
- 18
src/freedombone-controlpanel Целия файл

@@ -268,6 +268,8 @@ function check_for_updates {
268 268
 }
269 269
 
270 270
 function set_main_repo {
271
+    return
272
+
271 273
     data=$(tempfile 2>/dev/null)
272 274
     trap "rm -f $data" 0 1 2 5 15
273 275
     dialog --backtitle $"Freedombone Control Panel" \
@@ -492,6 +494,8 @@ function show_users {
492 494
 }
493 495
 
494 496
 function show_mirrors_password {
497
+    return
498
+
495 499
     if [ ! /home/mirrors ]; then
496 500
         return
497 501
     fi
@@ -592,7 +596,7 @@ function show_about {
592 596
     show_ssh_public_key
593 597
     show_domains
594 598
     show_tahoelafs
595
-    show_mirrors_password
599
+    #show_mirrors_password
596 600
     show_users
597 601
     any_key
598 602
 }
@@ -2102,7 +2106,7 @@ function menu_top_level {
2102 2106
         trap "rm -f $data" 0 1 2 5 15
2103 2107
         dialog --backtitle $"Freedombone Control Panel" \
2104 2108
                --title $"Control Panel" \
2105
-               --radiolist $"Choose an operation:" 29 70 21 \
2109
+               --radiolist $"Choose an operation:" 28 70 20 \
2106 2110
                1 $"About this system" off \
2107 2111
                2 $"Passwords" off \
2108 2112
                3 $"Backup and Restore" off \
@@ -2116,14 +2120,13 @@ function menu_top_level {
2116 2120
                11 $"Email Menu" off \
2117 2121
                12 $"Domain or User Blocking" off \
2118 2122
                13 $"Security Settings" off \
2119
-               14 $"Set the main repository (repo mirrors)" off \
2120
-               15 $"Change the name of this system" off \
2121
-               16 $"Set a static local IP address" off \
2122
-               17 $"Wifi menu" off \
2123
-               18 $"Check for updates" off \
2124
-               19 $"Power off the system" off \
2125
-               20 $"Restart the system" off \
2126
-               21 $"Exit" on 2> $data
2123
+               14 $"Change the name of this system" off \
2124
+               15 $"Set a static local IP address" off \
2125
+               16 $"Wifi menu" off \
2126
+               17 $"Check for updates" off \
2127
+               18 $"Power off the system" off \
2128
+               19 $"Restart the system" off \
2129
+               20 $"Exit" on 2> $data
2127 2130
         sel=$?
2128 2131
         case $sel in
2129 2132
             1) exit 1;;
@@ -2148,14 +2151,13 @@ function menu_top_level {
2148 2151
             11) menu_email;;
2149 2152
             12) domain_blocking;;
2150 2153
             13) security_settings;;
2151
-            14) set_main_repo;;
2152
-            15) change_system_name;;
2153
-            16) set_static_IP;;
2154
-            17) menu_wifi;;
2155
-            18) check_for_updates;;
2156
-            19) shut_down_system;;
2157
-            20) restart_system;;
2158
-            21) break;;
2154
+            14) change_system_name;;
2155
+            15) set_static_IP;;
2156
+            16) menu_wifi;;
2157
+            17) check_for_updates;;
2158
+            18) shut_down_system;;
2159
+            19) restart_system;;
2160
+            20) break;;
2159 2161
         esac
2160 2162
     done
2161 2163
 }

+ 1
- 1
src/freedombone-upgrade Целия файл

@@ -72,7 +72,7 @@ fi
72 72
 update-ca-certificates
73 73
 
74 74
 read_repo_servers
75
-${PROJECT_NAME}-mirrors
75
+#${PROJECT_NAME}-mirrors
76 76
 
77 77
 if [ ! -d $PROJECT_DIR ]; then
78 78
     git_clone $PROJECT_REPO $PROJECT_DIR

+ 1
- 1
src/freedombone-utils-repos Целия файл

@@ -143,7 +143,7 @@ function create_mirrors {
143 143
     if [[ $(is_completed $FUNCNAME) == "1" ]]; then
144 144
         return
145 145
     fi
146
-    ${PROJECT_NAME}-mirrors
146
+    #${PROJECT_NAME}-mirrors
147 147
     mark_completed $FUNCNAME
148 148
 }
149 149
 

+ 2
- 2
src/freedombone-utils-selector Целия файл

@@ -572,7 +572,7 @@ function install_apps {
572 572
                             function_check add_users_after_install
573 573
                             add_users_after_install ${a}
574 574
 
575
-                            ${PROJECT_NAME}-mirrors --app ${a}
575
+                            #${PROJECT_NAME}-mirrors --app ${a}
576 576
 
577 577
                             function_check lockdown_permissions
578 578
                             lockdown_permissions
@@ -609,7 +609,7 @@ function install_apps {
609 609
                                 function_check lockdown_permissions
610 610
                                 lockdown_permissions
611 611
 
612
-                                ${PROJECT_NAME}-mirrors --app ${a}
612
+                                #${PROJECT_NAME}-mirrors --app ${a}
613 613
 
614 614
                                 function_check install_completed
615 615
                                 install_completed ${a}