浏览代码

Placeholder reconfigure functions

Bob Mottram 8 年前
父节点
当前提交
580fe547dc

+ 4
- 0
src/freedombone-app-babel 查看文件

@@ -33,6 +33,10 @@ VARIANTS=''
33 33
 ENABLE_BABEL="no"
34 34
 BABEL_PORT=6696
35 35
 
36
+function reconfigure_babel {
37
+    echo -n ''
38
+}
39
+
36 40
 function upgrade_babel {
37 41
     echo -n ''
38 42
 }

+ 4
- 0
src/freedombone-app-batman 查看文件

@@ -46,6 +46,10 @@ function configure_firewall_for_batma {
46 46
 	echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
47 47
 }
48 48
 
49
+function reconfigure_batman {
50
+    echo -n ''
51
+}
52
+
49 53
 function upgrade_batman {
50 54
     echo -n ''
51 55
 }

+ 4
- 0
src/freedombone-app-blog 查看文件

@@ -38,6 +38,10 @@ FULLBLOG_COMMIT='bf5fe9486160be4da86d8987d3e5c977e1dc6d32'
38 38
 MY_BLOG_TITLE="My Blog"
39 39
 MY_BLOG_SUBTITLE="Another ${PROJECT_NAME} Blog"
40 40
 
41
+function reconfigure_blog {
42
+    echo -n ''
43
+}
44
+
41 45
 function upgrade_blog {
42 46
 	if ! grep -Fxq "install_blog" $COMPLETION_FILE; then
43 47
 		return

+ 4
- 0
src/freedombone-app-cjdns 查看文件

@@ -41,6 +41,10 @@ CJDNS_COMMIT='13189fde111d0500427a7a0ce06a970753527bca'
41 41
 CJDCMD_REPO="https://github.com/inhies/cjdcmd"
42 42
 CJDCMD_COMMIT='973cca6ed0eecf9041c3403a40193c0b1291b808'
43 43
 
44
+function reconfigure_cjdns {
45
+    echo -n ''
46
+}
47
+
44 48
 function upgrade_cjdns {
45 49
 	if ! grep -Fxq "install_cjdns" $COMPLETION_FILE; then
46 50
 		return

+ 4
- 0
src/freedombone-app-dlna 查看文件

@@ -30,6 +30,10 @@
30 30
 
31 31
 VARIANTS='full media'
32 32
 
33
+function reconfigure_dlna {
34
+	echo ''
35
+}
36
+
33 37
 function upgrade_dlna {
34 38
 	echo ''
35 39
 }

+ 4
- 0
src/freedombone-app-emacs 查看文件

@@ -30,6 +30,10 @@
30 30
 
31 31
 VARIANTS='all'
32 32
 
33
+function reconfigure_emacs {
34
+    echo -n ''
35
+}
36
+
33 37
 function upgrade_emacs {
34 38
     echo -n ''
35 39
 }

+ 4
- 0
src/freedombone-app-gnusocial 查看文件

@@ -68,6 +68,10 @@ function gnusocial_running_script {
68 68
 	chmod +x /etc/cron.hourly/gnusocial-daemons
69 69
 }
70 70
 
71
+function reconfigure_gnusocial {
72
+    echo -n ''
73
+}
74
+
71 75
 function upgrade_gnusocial {
72 76
 	if ! grep -Fxq "install_gnusocial_main" $COMPLETION_FILE; then
73 77
 		return

+ 4
- 0
src/freedombone-app-gogs 查看文件

@@ -37,6 +37,10 @@ GIT_DOMAIN_REPO="https://github.com/gogits/gogs"
37 37
 GIT_ADMIN_PASSWORD=
38 38
 GOGS_COMMIT='3fb4f7f4980b4339fd9ef6a3ba5b0acab83d264d'
39 39
 
40
+function reconfigure_gogs {
41
+    echo -n ''
42
+}
43
+
40 44
 function upgrade_gogs {
41 45
 	if ! grep -Fxq "install_gogs" $COMPLETION_FILE; then
42 46
 		return

+ 4
- 0
src/freedombone-app-hubzilla 查看文件

@@ -40,6 +40,10 @@ HUBZILLA_ADMIN_PASSWORD=
40 40
 HUBZILLA_COMMIT='2d79e75788aa71664a379c4cea0b6bfe3ab87ad0'
41 41
 HUBZILLA_ADDONS_COMMIT='67b40c7a40f328a93ee030eb15e9e1261f3cba64'
42 42
 
43
+function reconfigure_hubzilla {
44
+    echo -n ''
45
+}
46
+
43 47
 function upgrade_hubzilla {
44 48
 	if ! grep -Fxq "install_hubzilla" $COMPLETION_FILE; then
45 49
 		return

+ 4
- 0
src/freedombone-app-ipfs 查看文件

@@ -34,6 +34,10 @@ IPFS_GO_REPO="https://github.com/ipfs/go-ipfs"
34 34
 IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
35 35
 IPFS_PORT=4001
36 36
 
37
+function reconfigure_ipfs {
38
+    echo -n ''
39
+}
40
+
37 41
 function upgrade_ipfs {
38 42
 	if ! grep -Fxq "install_ipfs" $COMPLETION_FILE; then
39 43
 		return

+ 4
- 0
src/freedombone-app-irc 查看文件

@@ -36,6 +36,10 @@ IRC_ONION_PORT=6697
36 36
 # An optional password to log into IRC. This applies to all users
37 37
 IRC_PASSWORD=
38 38
 
39
+function reconfigure_irc {
40
+    echo -n ''
41
+}
42
+
39 43
 function upgrade_irc {
40 44
     echo -n ''
41 45
 }

+ 4
- 0
src/freedombone-app-mediagoblin 查看文件

@@ -37,6 +37,10 @@ MEDIAGOBLIN_COMMIT='d1ac2d52fd8859c3f32fa38e4836ffe9615e5bba'
37 37
 MEDIAGOBLIN_ADMIN_PASSWORD=
38 38
 MEDIAGOBLIN_ONION_PORT=8096
39 39
 
40
+function reconfigure_mediagoblin {
41
+	echo -n ''
42
+}
43
+
40 44
 function upgrade_mediagoblin {
41 45
 	echo -n ''
42 46
 }

+ 4
- 0
src/freedombone-app-mumble 查看文件

@@ -39,6 +39,10 @@ VOIP_PORT=64738
39 39
 VOIP_DATABASE="mumble-server.sqlite"
40 40
 VOIP_CONFIG_FILE="mumble-server.ini"
41 41
 
42
+function reconfigure_mumble {
43
+	echo -n ''
44
+}
45
+
42 46
 function upgrade_mumble {
43 47
 	echo -n ''
44 48
 }

+ 4
- 0
src/freedombone-app-rss 查看文件

@@ -42,6 +42,10 @@ RSS_READER_PATH=/etc/share/tt-rss
42 42
 RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
43 43
 RSS_READER_GNUSOCIAL_COMMIT='8b92b8f5db7b0d12459c7bd86a50f48815efe642'
44 44
 
45
+function reconfigure_rss {
46
+    echo -n ''
47
+}
48
+
45 49
 function upgrade_rss {
46 50
 	if grep -Fxq "install_rss" $COMPLETION_FILE; then
47 51
 		function_check set_repo_commit

+ 4
- 0
src/freedombone-app-searx 查看文件

@@ -38,6 +38,10 @@ SEARX_ONION_HOSTNAME=
38 38
 SEARX_LOGIN_TEXT=$"Search engine login"
39 39
 SEARX_PASSWORD=
40 40
 
41
+function reconfigure_searx {
42
+    echo -n ''
43
+}
44
+
41 45
 function upgrade_searx {
42 46
 	if ! grep -Fxq "install_searx" $COMPLETION_FILE; then
43 47
 		return

+ 4
- 0
src/freedombone-app-sip 查看文件

@@ -37,6 +37,10 @@ VOIP_TURN_PORT=3478
37 37
 VOIP_TURN_TLS_PORT=5349
38 38
 VOIP_TURN_NONCE=
39 39
 
40
+function reconfigure_sip {
41
+    echo -n ''
42
+}
43
+
40 44
 function upgrade_sip {
41 45
 	# remove the original sipwitch daemon if it exists
42 46
 	if [ -f /etc/init.d/sipwitch ]; then

+ 4
- 0
src/freedombone-app-syncthing 查看文件

@@ -39,6 +39,10 @@ SYNCTHING_PORT=22000
39 39
 SYNCTHING_SHARED_DATA=/var/lib/syncthing/SyncShared
40 40
 SYNCTHING_USER_IDS_FILE='.syncthingids'
41 41
 
42
+function reconfigure_syncthing {
43
+	echo -n ''
44
+}
45
+
42 46
 function upgrade_syncthing {
43 47
 	echo -n ''
44 48
 }

+ 4
- 0
src/freedombone-app-tox 查看文件

@@ -46,6 +46,10 @@ TOXIC_REPO="https://github.com/Tox/toxic"
46 46
 TOXIC_COMMIT='cf16849b374e484a33a4dffa3dfb937b59d537f2'
47 47
 TOXIC_FILE=/usr/local/bin/toxic
48 48
 
49
+function reconfigure_tox {
50
+    echo -n ''
51
+}
52
+
49 53
 function upgrade_tox {
50 54
 	if ! grep -Fxq "install_tox" $COMPLETION_FILE; then
51 55
 		return

+ 4
- 0
src/freedombone-app-vpn 查看文件

@@ -30,6 +30,10 @@
30 30
 
31 31
 VARIANTS=''
32 32
 
33
+function reconfigure_vpn {
34
+    echo -n ''
35
+}
36
+
33 37
 function upgrade_vpn {
34 38
     echo -n ''
35 39
 }

+ 4
- 0
src/freedombone-app-webmail 查看文件

@@ -38,6 +38,10 @@ WEBMAIL_ADMIN_PASSWORD=
38 38
 WEB_PATH=/var/www
39 39
 WEBMAIL_PATH=$WEB_PATH/webmail
40 40
 
41
+function reconfigure_webmail {
42
+    echo -n ''
43
+}
44
+
41 45
 function upgrade_webmail {
42 46
 	if ! grep -Fxq "install_webmail" $COMPLETION_FILE; then
43 47
 		return

+ 4
- 0
src/freedombone-app-wiki 查看文件

@@ -36,6 +36,10 @@ WIKI_TITLE="${PROJECT_NAME} Wiki"
36 36
 WIKI_CODE=
37 37
 WIKI_ONION_PORT=8089
38 38
 
39
+function reconfigure_wiki {
40
+	echo -n ''
41
+}
42
+
39 43
 function upgrade_wiki {
40 44
 	echo -n ''
41 45
 }

+ 4
- 0
src/freedombone-app-xmpp 查看文件

@@ -37,6 +37,10 @@ XMPP_PASSWORD=
37 37
 XMPP_CIPHERS='"EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA"'
38 38
 XMPP_ECC_CURVE='"secp384r1"'
39 39
 
40
+function reconfigure_xmpp {
41
+    echo -n ''
42
+}
43
+
40 44
 function update_prosody_modules {
41 45
 	if [ ! -d $INSTALL_DIR/prosody-modules ]; then
42 46
 		return

+ 4
- 0
src/freedombone-app-zeronet 查看文件

@@ -47,6 +47,10 @@ ZERONET_DEFAULT_MAIL_TAGLINE="Mail for the Mesh"
47 47
 ZERONET_ID_REPO="https://github.com/HelloZeroNet/ZeroID"
48 48
 ZERONET_ID_COMMIT='ccf14fdc96fa9cdb2ddd8a7ab283a8e17a4f234b'
49 49
 
50
+function reconfigure_zeronet {
51
+    echo -n ''
52
+}
53
+
50 54
 function upgrade_zeronet {
51 55
 	if ! grep -Fxq "install_zeronet" $COMPLETION_FILE; then
52 56
 		return

+ 0
- 1
src/freedombone-restore-local 查看文件

@@ -863,7 +863,6 @@ restore_user_local
863 863
 restore_certs
864 864
 restore_personal_settings
865 865
 restore_mailing_list
866
-
867 866
 restore_email
868 867
 restore_apps
869 868
 set_user_permissions

+ 1
- 1
src/freedombone-tests 查看文件

@@ -61,7 +61,7 @@ function test_app_functions {
61 61
 	FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
62 62
 
63 63
 	# check that these functions exist
64
-	interface_functions=( install remove backup_local backup_remote restore_local restore_remote upgrade )
64
+	interface_functions=( install remove backup_local backup_remote restore_local restore_remote upgrade reconfigure )
65 65
 
66 66
 	# for all the app scripts
67 67
 	for filename in $FILES