Ver código fonte

Fix app interfaces

Bob Mottram 8 anos atrás
pai
commit
737ea96f7f

+ 0
- 2
src/freedombone Ver arquivo

@@ -281,10 +281,8 @@ if [ ! "$?" = "0" ]; then
281 281
 fi
282 282
 
283 283
 setup_utils
284
-setup_mesh
285 284
 setup_email
286 285
 setup_web
287
-script_for_attaching_usb_drive
288 286
 setup_apps
289 287
 setup_final
290 288
 

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

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

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

@@ -129,7 +129,7 @@ function remove_cjdns {
129 129
 	sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
130 130
 }
131 131
 
132
-function install_cjdns {
132
+function install_cjdns_main {
133 133
 	if [[ $ENABLE_CJDNS != "yes" ]]; then
134 134
 		return
135 135
 	fi
@@ -138,7 +138,7 @@ function install_cjdns {
138 138
 	function_check set_repo_commit
139 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 142
 		return
143 143
 	fi
144 144
 
@@ -418,7 +418,7 @@ function install_cjdns {
418 418
 	function_check configure_firewall_for_cjdns
419 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 424
 function install_cjdns_tools {
@@ -480,4 +480,13 @@ function install_cjdns_tools {
480 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 492
 # NOTE: deliberately no exit 0

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

@@ -50,7 +50,7 @@ function configure_firewall_for_dlna {
50 50
 }
51 51
 
52 52
 function backup_dlna {
53
-    echo ''
53
+	echo ''
54 54
 }
55 55
 
56 56
 function remove_dlna {
@@ -69,8 +69,8 @@ function remove_dlna {
69 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 74
 		return
75 75
 	fi
76 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,7 +121,7 @@ function install_dlna {
121 121
 
122 122
 	function_check configure_firewall_for_dlna
123 123
 	configure_firewall_for_dlna
124
-	echo 'install_dlna' >> $COMPLETION_FILE
124
+	echo 'install_dlna_main' >> $COMPLETION_FILE
125 125
 }
126 126
 
127 127
 function script_for_attaching_usb_drive {
@@ -163,4 +163,13 @@ function script_for_attaching_usb_drive {
163 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 175
 # NOTE: deliberately no exit 0

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

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

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

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

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

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

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

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

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

@@ -111,3 +111,5 @@ function install_apps {
111 111
 		app_index=$[app_index+1]
112 112
 	done
113 113
 }
114
+
115
+# NOTE: deliberately no exit 0

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

@@ -291,13 +291,6 @@ function setup_utils {
291 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 294
 function setup_email {
302 295
 	install_email
303 296
 	create_procmail