Skip to content
Snippets Groups Projects
Commit cd0a8781 authored by Bob Mottram's avatar Bob Mottram
Browse files

Placeholder backup functions

parent e9301572
No related branches found
No related tags found
No related merge requests found
Showing
with 82 additions and 1 deletion
......@@ -32,6 +32,10 @@
ENABLE_BABEL="no"
BABEL_PORT=6696
function backup_babel {
echo ''
}
function remove_babel {
if ! grep -Fxq "mesh_babel" $COMPLETION_FILE; then
return
......
......@@ -45,6 +45,10 @@ function configure_firewall_for_batman {
echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
}
function backup_batman {
echo ''
}
function remove_batman {
if ! grep -Fxq "mesh_batman" $COMPLETION_FILE; then
return
......
......@@ -36,6 +36,10 @@ FULLBLOG_COMMIT='bf5fe9486160be4da86d8987d3e5c977e1dc6d32'
MY_BLOG_TITLE="My Blog"
MY_BLOG_SUBTITLE="Another ${PROJECT_NAME} Blog"
function backup_blog {
echo ''
}
function remove_blog {
if ! grep -Fxq "install_blog" $COMPLETION_FILE; then
return
......
......@@ -107,12 +107,16 @@ function get_cjdns_password {
fi
}
function backup_cjdns {
echo ''
}
function remove_cjdns {
if ! grep -Fxq "mesh_cjdns" $COMPLETION_FILE; then
return
fi
service cjdns stop
ip6tables -t nat -D POSTROUTING -o tun0 -j MASQUERADE
ip6tables -D nat -D POSTROUTING -o tun0 -j MASQUERADE
ip6tables -D FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
ip6tables -D INPUT -p udp --dport $CJDNS_PORT -j ACCEPT
ip6tables -D INPUT -p tcp --dport $CJDNS_PORT -j ACCEPT
......@@ -121,6 +125,7 @@ function remove_cjdns {
rm -rf /etc/cjdns
sed -i '/mesh_cjdns/d' $COMPLETION_FILE
sed -i '/cjdns /d' $COMPLETION_FILE
sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
}
......
......@@ -49,6 +49,10 @@ function configure_firewall_for_dlna {
echo 'configure_firewall_for_dlna' >> $COMPLETION_FILE
}
function backup_dlna_server {
echo ''
}
function remove_dlna_server {
if ! grep -Fxq "install_dlna_server" $COMPLETION_FILE; then
return
......
......@@ -47,6 +47,10 @@ SHARINGS_COMMIT='d5c6c7f855d9afff9086c09ea706f38c859bc0d4'
SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
SHARINGS_THEME_COMMIT='7106c7ef03'
function backup_gnu_social {
echo ''
}
function remove_gnu_social {
if ! grep -Fxq "install_gnu_social" $COMPLETION_FILE; then
return
......
......@@ -35,6 +35,10 @@ GIT_DOMAIN_REPO="https://github.com/gogits/gogs"
GIT_ADMIN_PASSWORD=
GOGS_COMMIT='3fb4f7f4980b4339fd9ef6a3ba5b0acab83d264d'
function backup_gogs {
echo ''
}
function remove_gogs {
if ! grep -Fxq "install_gogs" $COMPLETION_FILE; then
return
......
......@@ -38,6 +38,10 @@ HUBZILLA_ADMIN_PASSWORD=
HUBZILLA_COMMIT='2d79e75788aa71664a379c4cea0b6bfe3ab87ad0'
HUBZILLA_ADDONS_COMMIT='67b40c7a40f328a93ee030eb15e9e1261f3cba64'
function backup_hubzilla {
echo ''
}
function remove_hubzilla {
if ! grep -Fxq "install_hubzilla" $COMPLETION_FILE; then
return
......
......@@ -28,6 +28,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
function backup_intrusion_detection {
echo ''
}
function remove_intrusion_detection {
if ! grep -Fxq "intrusion_detection" $COMPLETION_FILE; then
return
......
......@@ -32,6 +32,10 @@ IPFS_GO_REPO="https://github.com/ipfs/go-ipfs"
IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
IPFS_PORT=4001
function backup_ipfs {
echo ''
}
function remove_ipfs {
if ! grep -Fxq "install_ipfs" $COMPLETION_FILE; then
return
......
......@@ -34,6 +34,10 @@ IRC_ONION_PORT=6697
# An optional password to log into IRC. This applies to all users
IRC_PASSWORD=
function backup_irc_server {
echo ''
}
function remove_irc_server {
if ! grep -Fxq "install_irc_server" $COMPLETION_FILE; then
return
......
......@@ -35,6 +35,10 @@ MEDIAGOBLIN_COMMIT='d1ac2d52fd8859c3f32fa38e4836ffe9615e5bba'
MEDIAGOBLIN_ADMIN_PASSWORD=
MEDIAGOBLIN_ONION_PORT=8096
function backup_mediagoblin {
echo ''
}
function install_mediagoblin {
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
return
......
......@@ -37,6 +37,10 @@ VOIP_PORT=64738
VOIP_DATABASE="mumble-server.sqlite"
VOIP_CONFIG_FILE="mumble-server.ini"
function backup_mumble {
echo ''
}
function remove_mumble {
if !grep -Fxq "install_mumble" $COMPLETION_FILE; then
if ! grep -Fxq "install_voip" $COMPLETION_FILE; then
......
......@@ -40,6 +40,10 @@ RSS_READER_PATH=/etc/share/tt-rss
RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
RSS_READER_GNUSOCIAL_COMMIT='8b92b8f5db7b0d12459c7bd86a50f48815efe642'
function backup_rss_reader {
echo ''
}
function remove_rss_reader {
if ! grep -Fxq "install_rss_reader" $COMPLETION_FILE; then
return
......
......@@ -36,6 +36,10 @@ SEARCH_ENGINE_ONION_HOSTNAME=
SEARCH_ENGINE_LOGIN_TEXT=$"Search engine login"
SEARCH_ENGINE_PASSWORD=
function backup_search_engine {
echo ''
}
function remove_search_engine {
if ! grep -Fxq "install_search_engine" $COMPLETION_FILE; then
return
......
......@@ -35,6 +35,10 @@ VOIP_TURN_PORT=3478
VOIP_TURN_TLS_PORT=5349
VOIP_TURN_NONCE=
function backup_sip {
echo ''
}
function remove_sip {
if ! grep -Fxq "install_sip" $COMPLETION_FILE; then
return
......
......@@ -37,6 +37,10 @@ SYNCTHING_PORT=22000
SYNCTHING_SHARED_DATA=/var/lib/syncthing/SyncShared
SYNCTHING_USER_IDS_FILE='.syncthingids'
function backup_syncthing {
echo ''
}
function remove_syncthing {
if ! grep -Fxq "install_syncthing" $COMPLETION_FILE; then
return
......
......@@ -44,6 +44,10 @@ TOXIC_REPO="https://github.com/Tox/toxic"
TOXIC_COMMIT='cf16849b374e484a33a4dffa3dfb937b59d537f2'
TOXIC_FILE=/usr/local/bin/toxic
function backup_tox {
echo ''
}
function remove_tox_node {
if ! grep -Fxq "install_tox_node" $COMPLETION_FILE; then
return
......
......@@ -28,6 +28,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
function backup_vpn_tunnel {
echo ''
}
function remove_vpn_tunnel {
apt-get -y remove --purge fastd
}
......
......@@ -36,6 +36,10 @@ WEBMAIL_ADMIN_PASSWORD=
WEB_PATH=/var/www
WEBMAIL_PATH=$WEB_PATH/webmail
function backup_webmail {
echo ''
}
function remove_webmail {
if ! grep -Fxq "install_webmail" $COMPLETION_FILE; then
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment