Procházet zdrojové kódy

Placeholder backup functions

Bob Mottram před 9 roky
rodič
revize
cd0a878149

+ 4
- 0
src/freedombone-app-babel Zobrazit soubor

32
 ENABLE_BABEL="no"
32
 ENABLE_BABEL="no"
33
 BABEL_PORT=6696
33
 BABEL_PORT=6696
34
 
34
 
35
+function backup_babel {
36
+    echo ''
37
+}
38
+
35
 function remove_babel {
39
 function remove_babel {
36
     if ! grep -Fxq "mesh_babel" $COMPLETION_FILE; then
40
     if ! grep -Fxq "mesh_babel" $COMPLETION_FILE; then
37
         return
41
         return

+ 4
- 0
src/freedombone-app-batman Zobrazit soubor

45
 	echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
45
 	echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
46
 }
46
 }
47
 
47
 
48
+function backup_batman {
49
+    echo ''
50
+}
51
+
48
 function remove_batman {
52
 function remove_batman {
49
 	if ! grep -Fxq "mesh_batman" $COMPLETION_FILE; then
53
 	if ! grep -Fxq "mesh_batman" $COMPLETION_FILE; then
50
 		return
54
 		return

+ 4
- 0
src/freedombone-app-blog Zobrazit soubor

36
 MY_BLOG_TITLE="My Blog"
36
 MY_BLOG_TITLE="My Blog"
37
 MY_BLOG_SUBTITLE="Another ${PROJECT_NAME} Blog"
37
 MY_BLOG_SUBTITLE="Another ${PROJECT_NAME} Blog"
38
 
38
 
39
+function backup_blog {
40
+    echo ''
41
+}
42
+
39
 function remove_blog {
43
 function remove_blog {
40
 	if ! grep -Fxq "install_blog" $COMPLETION_FILE; then
44
 	if ! grep -Fxq "install_blog" $COMPLETION_FILE; then
41
 		return
45
 		return

+ 6
- 1
src/freedombone-app-cjdns Zobrazit soubor

107
 	fi
107
 	fi
108
 }
108
 }
109
 
109
 
110
+function backup_cjdns {
111
+	echo ''
112
+}
113
+
110
 function remove_cjdns {
114
 function remove_cjdns {
111
 	if ! grep -Fxq "mesh_cjdns" $COMPLETION_FILE; then
115
 	if ! grep -Fxq "mesh_cjdns" $COMPLETION_FILE; then
112
 		return
116
 		return
113
 	fi
117
 	fi
114
 	service cjdns stop
118
 	service cjdns stop
115
-	ip6tables -t nat -D POSTROUTING -o tun0 -j MASQUERADE
119
+	ip6tables -D nat -D POSTROUTING -o tun0 -j MASQUERADE
116
 	ip6tables -D FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
120
 	ip6tables -D FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
117
 	ip6tables -D INPUT -p udp --dport $CJDNS_PORT -j ACCEPT
121
 	ip6tables -D INPUT -p udp --dport $CJDNS_PORT -j ACCEPT
118
 	ip6tables -D INPUT -p tcp --dport $CJDNS_PORT -j ACCEPT
122
 	ip6tables -D INPUT -p tcp --dport $CJDNS_PORT -j ACCEPT
121
 
125
 
122
 	rm -rf /etc/cjdns
126
 	rm -rf /etc/cjdns
123
 	sed -i '/mesh_cjdns/d' $COMPLETION_FILE
127
 	sed -i '/mesh_cjdns/d' $COMPLETION_FILE
128
+	sed -i '/cjdns /d' $COMPLETION_FILE
124
 	sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
129
 	sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
125
 }
130
 }
126
 
131
 

+ 4
- 0
src/freedombone-app-dlna Zobrazit soubor

49
 	echo 'configure_firewall_for_dlna' >> $COMPLETION_FILE
49
 	echo 'configure_firewall_for_dlna' >> $COMPLETION_FILE
50
 }
50
 }
51
 
51
 
52
+function backup_dlna_server {
53
+    echo ''
54
+}
55
+
52
 function remove_dlna_server {
56
 function remove_dlna_server {
53
 	if ! grep -Fxq "install_dlna_server" $COMPLETION_FILE; then
57
 	if ! grep -Fxq "install_dlna_server" $COMPLETION_FILE; then
54
 		return
58
 		return

+ 4
- 0
src/freedombone-app-gnusocial Zobrazit soubor

47
 SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
47
 SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
48
 SHARINGS_THEME_COMMIT='7106c7ef03'
48
 SHARINGS_THEME_COMMIT='7106c7ef03'
49
 
49
 
50
+function backup_gnu_social {
51
+    echo ''
52
+}
53
+
50
 function remove_gnu_social {
54
 function remove_gnu_social {
51
 	if ! grep -Fxq "install_gnu_social" $COMPLETION_FILE; then
55
 	if ! grep -Fxq "install_gnu_social" $COMPLETION_FILE; then
52
 		return
56
 		return

+ 4
- 0
src/freedombone-app-gogs Zobrazit soubor

35
 GIT_ADMIN_PASSWORD=
35
 GIT_ADMIN_PASSWORD=
36
 GOGS_COMMIT='3fb4f7f4980b4339fd9ef6a3ba5b0acab83d264d'
36
 GOGS_COMMIT='3fb4f7f4980b4339fd9ef6a3ba5b0acab83d264d'
37
 
37
 
38
+function backup_gogs {
39
+    echo ''
40
+}
41
+
38
 function remove_gogs {
42
 function remove_gogs {
39
 	if ! grep -Fxq "install_gogs" $COMPLETION_FILE; then
43
 	if ! grep -Fxq "install_gogs" $COMPLETION_FILE; then
40
 		return
44
 		return

+ 4
- 0
src/freedombone-app-hubzilla Zobrazit soubor

38
 HUBZILLA_COMMIT='2d79e75788aa71664a379c4cea0b6bfe3ab87ad0'
38
 HUBZILLA_COMMIT='2d79e75788aa71664a379c4cea0b6bfe3ab87ad0'
39
 HUBZILLA_ADDONS_COMMIT='67b40c7a40f328a93ee030eb15e9e1261f3cba64'
39
 HUBZILLA_ADDONS_COMMIT='67b40c7a40f328a93ee030eb15e9e1261f3cba64'
40
 
40
 
41
+function backup_hubzilla {
42
+    echo ''
43
+}
44
+
41
 function remove_hubzilla {
45
 function remove_hubzilla {
42
 	if ! grep -Fxq "install_hubzilla" $COMPLETION_FILE; then
46
 	if ! grep -Fxq "install_hubzilla" $COMPLETION_FILE; then
43
 		return
47
 		return

+ 4
- 0
src/freedombone-app-intrusion Zobrazit soubor

28
 # You should have received a copy of the GNU Affero General Public License
28
 # You should have received a copy of the GNU Affero General Public License
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_intrusion_detection {
32
+    echo ''
33
+}
34
+
31
 function remove_intrusion_detection {
35
 function remove_intrusion_detection {
32
 	if ! grep -Fxq "intrusion_detection" $COMPLETION_FILE; then
36
 	if ! grep -Fxq "intrusion_detection" $COMPLETION_FILE; then
33
 		return
37
 		return

+ 4
- 0
src/freedombone-app-ipfs Zobrazit soubor

32
 IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
32
 IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
33
 IPFS_PORT=4001
33
 IPFS_PORT=4001
34
 
34
 
35
+function backup_ipfs {
36
+    echo ''
37
+}
38
+
35
 function remove_ipfs {
39
 function remove_ipfs {
36
 	if ! grep -Fxq "install_ipfs" $COMPLETION_FILE; then
40
 	if ! grep -Fxq "install_ipfs" $COMPLETION_FILE; then
37
 		return
41
 		return

+ 4
- 0
src/freedombone-app-irc Zobrazit soubor

34
 # An optional password to log into IRC. This applies to all users
34
 # An optional password to log into IRC. This applies to all users
35
 IRC_PASSWORD=
35
 IRC_PASSWORD=
36
 
36
 
37
+function backup_irc_server {
38
+    echo ''
39
+}
40
+
37
 function remove_irc_server {
41
 function remove_irc_server {
38
 	if ! grep -Fxq "install_irc_server" $COMPLETION_FILE; then
42
 	if ! grep -Fxq "install_irc_server" $COMPLETION_FILE; then
39
 		return
43
 		return

+ 4
- 0
src/freedombone-app-mediagoblin Zobrazit soubor

35
 MEDIAGOBLIN_ADMIN_PASSWORD=
35
 MEDIAGOBLIN_ADMIN_PASSWORD=
36
 MEDIAGOBLIN_ONION_PORT=8096
36
 MEDIAGOBLIN_ONION_PORT=8096
37
 
37
 
38
+function backup_mediagoblin {
39
+    echo ''
40
+}
41
+
38
 function install_mediagoblin {
42
 function install_mediagoblin {
39
 	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
43
 	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
40
 		return
44
 		return

+ 4
- 0
src/freedombone-app-mumble Zobrazit soubor

37
 VOIP_DATABASE="mumble-server.sqlite"
37
 VOIP_DATABASE="mumble-server.sqlite"
38
 VOIP_CONFIG_FILE="mumble-server.ini"
38
 VOIP_CONFIG_FILE="mumble-server.ini"
39
 
39
 
40
+function backup_mumble {
41
+    echo ''
42
+}
43
+
40
 function remove_mumble {
44
 function remove_mumble {
41
 	if !grep -Fxq "install_mumble" $COMPLETION_FILE; then
45
 	if !grep -Fxq "install_mumble" $COMPLETION_FILE; then
42
 		if ! grep -Fxq "install_voip" $COMPLETION_FILE; then
46
 		if ! grep -Fxq "install_voip" $COMPLETION_FILE; then

+ 4
- 0
src/freedombone-app-rss Zobrazit soubor

40
 RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
40
 RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
41
 RSS_READER_GNUSOCIAL_COMMIT='8b92b8f5db7b0d12459c7bd86a50f48815efe642'
41
 RSS_READER_GNUSOCIAL_COMMIT='8b92b8f5db7b0d12459c7bd86a50f48815efe642'
42
 
42
 
43
+function backup_rss_reader {
44
+    echo ''
45
+}
46
+
43
 function remove_rss_reader {
47
 function remove_rss_reader {
44
 	if ! grep -Fxq "install_rss_reader" $COMPLETION_FILE; then
48
 	if ! grep -Fxq "install_rss_reader" $COMPLETION_FILE; then
45
 		return
49
 		return

+ 4
- 0
src/freedombone-app-search Zobrazit soubor

36
 SEARCH_ENGINE_LOGIN_TEXT=$"Search engine login"
36
 SEARCH_ENGINE_LOGIN_TEXT=$"Search engine login"
37
 SEARCH_ENGINE_PASSWORD=
37
 SEARCH_ENGINE_PASSWORD=
38
 
38
 
39
+function backup_search_engine {
40
+    echo ''
41
+}
42
+
39
 function remove_search_engine {
43
 function remove_search_engine {
40
 	if ! grep -Fxq "install_search_engine" $COMPLETION_FILE; then
44
 	if ! grep -Fxq "install_search_engine" $COMPLETION_FILE; then
41
 		return
45
 		return

+ 4
- 0
src/freedombone-app-sip Zobrazit soubor

35
 VOIP_TURN_TLS_PORT=5349
35
 VOIP_TURN_TLS_PORT=5349
36
 VOIP_TURN_NONCE=
36
 VOIP_TURN_NONCE=
37
 
37
 
38
+function backup_sip {
39
+    echo ''
40
+}
41
+
38
 function remove_sip {
42
 function remove_sip {
39
 	if ! grep -Fxq "install_sip" $COMPLETION_FILE; then
43
 	if ! grep -Fxq "install_sip" $COMPLETION_FILE; then
40
 		return
44
 		return

+ 4
- 0
src/freedombone-app-syncthing Zobrazit soubor

37
 SYNCTHING_SHARED_DATA=/var/lib/syncthing/SyncShared
37
 SYNCTHING_SHARED_DATA=/var/lib/syncthing/SyncShared
38
 SYNCTHING_USER_IDS_FILE='.syncthingids'
38
 SYNCTHING_USER_IDS_FILE='.syncthingids'
39
 
39
 
40
+function backup_syncthing {
41
+    echo ''
42
+}
43
+
40
 function remove_syncthing {
44
 function remove_syncthing {
41
 	if ! grep -Fxq "install_syncthing" $COMPLETION_FILE; then
45
 	if ! grep -Fxq "install_syncthing" $COMPLETION_FILE; then
42
 		return
46
 		return

+ 4
- 0
src/freedombone-app-tox Zobrazit soubor

44
 TOXIC_COMMIT='cf16849b374e484a33a4dffa3dfb937b59d537f2'
44
 TOXIC_COMMIT='cf16849b374e484a33a4dffa3dfb937b59d537f2'
45
 TOXIC_FILE=/usr/local/bin/toxic
45
 TOXIC_FILE=/usr/local/bin/toxic
46
 
46
 
47
+function backup_tox {
48
+    echo ''
49
+}
50
+
47
 function remove_tox_node {
51
 function remove_tox_node {
48
 	if ! grep -Fxq "install_tox_node" $COMPLETION_FILE; then
52
 	if ! grep -Fxq "install_tox_node" $COMPLETION_FILE; then
49
 		return
53
 		return

+ 4
- 0
src/freedombone-app-vpn Zobrazit soubor

28
 # You should have received a copy of the GNU Affero General Public License
28
 # You should have received a copy of the GNU Affero General Public License
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_tunnel {
32
+    echo ''
33
+}
34
+
31
 function remove_vpn_tunnel {
35
 function remove_vpn_tunnel {
32
 	apt-get -y remove --purge fastd
36
 	apt-get -y remove --purge fastd
33
 }
37
 }

+ 4
- 0
src/freedombone-app-webmail Zobrazit soubor

36
 WEB_PATH=/var/www
36
 WEB_PATH=/var/www
37
 WEBMAIL_PATH=$WEB_PATH/webmail
37
 WEBMAIL_PATH=$WEB_PATH/webmail
38
 
38
 
39
+function backup_webmail {
40
+    echo ''
41
+}
42
+
39
 function remove_webmail {
43
 function remove_webmail {
40
 	if ! grep -Fxq "install_webmail" $COMPLETION_FILE; then
44
 	if ! grep -Fxq "install_webmail" $COMPLETION_FILE; then
41
 		return
45
 		return

+ 4
- 0
src/freedombone-app-wiki Zobrazit soubor

34
 WIKI_CODE=
34
 WIKI_CODE=
35
 WIKI_ONION_PORT=8089
35
 WIKI_ONION_PORT=8089
36
 
36
 
37
+function backup_wiki {
38
+    echo ''
39
+}
40
+
37
 function remove_wiki {
41
 function remove_wiki {
38
 	if ! grep -Fxq "install_wiki" $COMPLETION_FILE; then
42
 	if ! grep -Fxq "install_wiki" $COMPLETION_FILE; then
39
 		return
43
 		return

+ 4
- 0
src/freedombone-app-xmpp Zobrazit soubor

35
 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"'
35
 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"'
36
 XMPP_ECC_CURVE='"secp384r1"'
36
 XMPP_ECC_CURVE='"secp384r1"'
37
 
37
 
38
+function backup_xmpp {
39
+    echo ''
40
+}
41
+
38
 function configure_firewall_for_xmpp {
42
 function configure_firewall_for_xmpp {
39
 	if [ ! -d /etc/prosody ]; then
43
 	if [ ! -d /etc/prosody ]; then
40
 		return
44
 		return

+ 4
- 0
src/freedombone-app-zeronet Zobrazit soubor

45
 ZERONET_ID_REPO="https://github.com/HelloZeroNet/ZeroID"
45
 ZERONET_ID_REPO="https://github.com/HelloZeroNet/ZeroID"
46
 ZERONET_ID_COMMIT='ccf14fdc96fa9cdb2ddd8a7ab283a8e17a4f234b'
46
 ZERONET_ID_COMMIT='ccf14fdc96fa9cdb2ddd8a7ab283a8e17a4f234b'
47
 
47
 
48
+function backup_zeronet {
49
+    echo ''
50
+}
51
+
48
 function remove_zeronet_blog {
52
 function remove_zeronet_blog {
49
 	if ! grep -Fxq "install_zeronet_blog" $COMPLETION_FILE; then
53
 	if ! grep -Fxq "install_zeronet_blog" $COMPLETION_FILE; then
50
 		return
54
 		return