Explorar el Código

Fix app interfaces

Bob Mottram hace 8 años
padre
commit
737ea96f7f

+ 0
- 2
src/freedombone Ver fichero

281
 fi
281
 fi
282
 
282
 
283
 setup_utils
283
 setup_utils
284
-setup_mesh
285
 setup_email
284
 setup_email
286
 setup_web
285
 setup_web
287
-script_for_attaching_usb_drive
288
 setup_apps
286
 setup_apps
289
 setup_final
287
 setup_final
290
 
288
 

+ 1
- 1
src/freedombone-app-batman Ver fichero

32
 ENABLE_BATMAN="no"
32
 ENABLE_BATMAN="no"
33
 BATMAN_CELLID='any'
33
 BATMAN_CELLID='any'
34
 
34
 
35
-function configure_firewall_for_batman {
35
+function configure_firewall_for_batma {
36
 	if grep -Fxq "configure_firewall_for_batman" $COMPLETION_FILE; then
36
 	if grep -Fxq "configure_firewall_for_batman" $COMPLETION_FILE; then
37
 		return
37
 		return
38
 	fi
38
 	fi

+ 12
- 3
src/freedombone-app-cjdns Ver fichero

129
 	sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
129
 	sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
130
 }
130
 }
131
 
131
 
132
-function install_cjdns {
132
+function install_cjdns_main {
133
 	if [[ $ENABLE_CJDNS != "yes" ]]; then
133
 	if [[ $ENABLE_CJDNS != "yes" ]]; then
134
 		return
134
 		return
135
 	fi
135
 	fi
138
 	function_check set_repo_commit
138
 	function_check set_repo_commit
139
 	set_repo_commit /etc/cjdns "cjdns commit" "$CJDNS_COMMIT" $CJDNS_REPO
139
 	set_repo_commit /etc/cjdns "cjdns commit" "$CJDNS_COMMIT" $CJDNS_REPO
140
 
140
 
141
-	if grep -Fxq "install_cjdns" $COMPLETION_FILE; then
141
+	if grep -Fxq "install_cjdns_main" $COMPLETION_FILE; then
142
 		return
142
 		return
143
 	fi
143
 	fi
144
 
144
 
418
 	function_check configure_firewall_for_cjdns
418
 	function_check configure_firewall_for_cjdns
419
 	configure_firewall_for_cjdns
419
 	configure_firewall_for_cjdns
420
 
420
 
421
-	echo 'install_cjdns' >> $COMPLETION_FILE
421
+	echo 'install_cjdns_main' >> $COMPLETION_FILE
422
 }
422
 }
423
 
423
 
424
 function install_cjdns_tools {
424
 function install_cjdns_tools {
480
 	echo 'install_cjdns_tools' >> $COMPLETION_FILE
480
 	echo 'install_cjdns_tools' >> $COMPLETION_FILE
481
 }
481
 }
482
 
482
 
483
+function install_cjdns {
484
+	if grep -Fxq "install_cjdns" $COMPLETION_FILE; then
485
+		return
486
+	fi
487
+	install_cjdns_main
488
+	install_cjdns_tools
489
+	echo 'install_cjdns' >> $COMPLETION_FILE
490
+}
491
+
483
 # NOTE: deliberately no exit 0
492
 # NOTE: deliberately no exit 0

+ 13
- 4
src/freedombone-app-dlna Ver fichero

50
 }
50
 }
51
 
51
 
52
 function backup_dlna {
52
 function backup_dlna {
53
-    echo ''
53
+	echo ''
54
 }
54
 }
55
 
55
 
56
 function remove_dlna {
56
 function remove_dlna {
69
 	sed -i '/install_dlna/d' $COMPLETION_FILE
69
 	sed -i '/install_dlna/d' $COMPLETION_FILE
70
 }
70
 }
71
 
71
 
72
-function install_dlna {
73
-	if grep -Fxq "install_dlna" $COMPLETION_FILE; then
72
+function install_dlna_main {
73
+	if grep -Fxq "install_dlna_main" $COMPLETION_FILE; then
74
 		return
74
 		return
75
 	fi
75
 	fi
76
 	if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
76
 	if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
121
 
121
 
122
 	function_check configure_firewall_for_dlna
122
 	function_check configure_firewall_for_dlna
123
 	configure_firewall_for_dlna
123
 	configure_firewall_for_dlna
124
-	echo 'install_dlna' >> $COMPLETION_FILE
124
+	echo 'install_dlna_main' >> $COMPLETION_FILE
125
 }
125
 }
126
 
126
 
127
 function script_for_attaching_usb_drive {
127
 function script_for_attaching_usb_drive {
163
 	echo 'script_for_attaching_usb_drive' >> $COMPLETION_FILE
163
 	echo 'script_for_attaching_usb_drive' >> $COMPLETION_FILE
164
 }
164
 }
165
 
165
 
166
+function install_dlna {
167
+	if grep -Fxq "install_dlna" $COMPLETION_FILE; then
168
+		return
169
+	fi
170
+	install_dlna_main
171
+	script_for_attaching_usb_drive
172
+	echo 'install_dlna' >> $COMPLETION_FILE
173
+}
174
+
166
 # NOTE: deliberately no exit 0
175
 # NOTE: deliberately no exit 0

+ 4
- 0
src/freedombone-app-rss Ver fichero

443
 }
443
 }
444
 
444
 
445
 function install_rss {
445
 function install_rss {
446
+	if grep -Fxq "install_rss" $COMPLETION_FILE; then
447
+		return
448
+	fi
446
 	install_rss_main
449
 	install_rss_main
447
 	install_rss_gnusocial
450
 	install_rss_gnusocial
448
 	install_rss_mobile_reader
451
 	install_rss_mobile_reader
452
+	echo 'install_rss' >> $COMPLETION_FILE
449
 }
453
 }
450
 
454
 
451
 # NOTE: deliberately no exit 0
455
 # NOTE: deliberately no exit 0

+ 6
- 1
src/freedombone-app-vpn Ver fichero

29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30
 
30
 
31
 function backup_vpn {
31
 function backup_vpn {
32
-    echo ''
32
+	echo ''
33
 }
33
 }
34
 
34
 
35
 function remove_vpn {
35
 function remove_vpn {
36
 	apt-get -y remove --purge fastd
36
 	apt-get -y remove --purge fastd
37
+	sed -i '/install_vpn/d' $COMPLETION_FILE
37
 }
38
 }
38
 
39
 
39
 function install_vpn {
40
 function install_vpn {
41
+	if grep -Fxq "install_vpn" $COMPLETION_FILE; then
42
+		return
43
+	fi
40
 	if ! grep -q "repo.universe-factory.net" /etc/apt/sources.list; then
44
 	if ! grep -q "repo.universe-factory.net" /etc/apt/sources.list; then
41
 		echo 'deb http://repo.universe-factory.net/debian/ sid main' >> /etc/apt/sources.list
45
 		echo 'deb http://repo.universe-factory.net/debian/ sid main' >> /etc/apt/sources.list
42
 		gpg --keyserver pgpkeys.mit.edu --recv-key 16EF3F64CB201D9C
46
 		gpg --keyserver pgpkeys.mit.edu --recv-key 16EF3F64CB201D9C
50
 			exit 52026
54
 			exit 52026
51
 		fi
55
 		fi
52
 	fi
56
 	fi
57
+	echo 'install_vpn' >> $COMPLETION_FILE
53
 }
58
 }
54
 
59
 
55
 # NOTE: deliberately there is no "exit 0"
60
 # NOTE: deliberately there is no "exit 0"

+ 4
- 0
src/freedombone-app-xmpp Ver fichero

408
 }
408
 }
409
 
409
 
410
 function install_xmpp {
410
 function install_xmpp {
411
+	if grep -Fxq "install_xmpp" $COMPLETION_FILE; then
412
+		return
413
+	fi
411
 	install_xmpp_main
414
 	install_xmpp_main
412
 	install_xmpp_client
415
 	install_xmpp_client
416
+	echo 'install_xmpp' >> $COMPLETION_FILE
413
 }
417
 }
414
 
418
 
415
 # NOTE: deliberately no exit 0
419
 # NOTE: deliberately no exit 0

+ 4
- 0
src/freedombone-app-zeronet Ver fichero

459
 }
459
 }
460
 
460
 
461
 function install_zeronet {
461
 function install_zeronet {
462
+	if grep -Fxq "install_zeronet" $COMPLETION_FILE; then
463
+		return
464
+	fi
462
 	install_zeronet_main
465
 	install_zeronet_main
463
 	install_zeronet_blog
466
 	install_zeronet_blog
464
 	install_zeronet_mail
467
 	install_zeronet_mail
465
 	install_zeronet_forum
468
 	install_zeronet_forum
469
+	echo 'install_zeronet' >> $COMPLETION_FILE
466
 }
470
 }
467
 
471
 
468
 # NOTE: deliberately no exit 0
472
 # NOTE: deliberately no exit 0

+ 2
- 0
src/freedombone-utils-selector Ver fichero

111
 		app_index=$[app_index+1]
111
 		app_index=$[app_index+1]
112
 	done
112
 	done
113
 }
113
 }
114
+
115
+# NOTE: deliberately no exit 0

+ 0
- 7
src/freedombone-utils-setup Ver fichero

291
 	upgrade_golang
291
 	upgrade_golang
292
 }
292
 }
293
 
293
 
294
-function setup_mesh {
295
-	install_cjdns
296
-	install_cjdns_tools
297
-	install_batman
298
-	install_babel
299
-}
300
-
301
 function setup_email {
294
 function setup_email {
302
 	install_email
295
 	install_email
303
 	create_procmail
296
 	create_procmail