From db962188149fa775af0cb451748295750823bf76 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 6 Nov 2016 14:13:00 +0000 Subject: [PATCH] Adding and removing dynamic dns domains --- src/freedombone-app-dokuwiki | 3 +++ src/freedombone-app-gnusocial | 3 +++ src/freedombone-app-gogs | 3 +++ src/freedombone-app-htmly | 3 +++ src/freedombone-app-hubzilla | 3 +++ src/freedombone-app-jitsi | 6 ++++++ src/freedombone-app-mediagoblin | 3 +++ src/freedombone-app-postactiv | 3 +++ 8 files changed, 27 insertions(+) diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index c0deeb63..34d746dc 100755 --- a/src/freedombone-app-dokuwiki +++ b/src/freedombone-app-dokuwiki @@ -205,6 +205,9 @@ function remove_dokuwiki { remove_completion_param "dokuwiki domain" sed -i '/Dokuwiki/d' /home/$MY_USERNAME/README sed -i '/dokuwiki/d' $COMPLETION_FILE + + function_check remove_ddns_domain + remove_ddns_domain $DOKUWIKI_DOMAIN_NAME } function get_dokuwiki_admin_password { diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index af3c5ab7..d6dde884 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -491,6 +491,9 @@ function remove_gnusocial { fi sed -i '/Gnusocial/d' /home/$MY_USERNAME/README remove_backup_database_local gnusocial + + function_check remove_ddns_domain + remove_ddns_domain $GNUSOCIAL_DOMAIN_NAME } function install_gnusocial_main { diff --git a/src/freedombone-app-gogs b/src/freedombone-app-gogs index 5ae6f256..815a7954 100755 --- a/src/freedombone-app-gogs +++ b/src/freedombone-app-gogs @@ -352,6 +352,9 @@ function remove_gogs { remove_completion_param "install_gogs" sed -i '/gogs /d' $COMPLETION_FILE remove_backup_database_local gogs + + function_check remove_ddns_domain + remove_ddns_domain $GIT_DOMAIN_NAME } function install_gogs { diff --git a/src/freedombone-app-htmly b/src/freedombone-app-htmly index 7835f1b3..60f5707c 100755 --- a/src/freedombone-app-htmly +++ b/src/freedombone-app-htmly @@ -343,6 +343,9 @@ function remove_htmly { sed -i '/htmly/d' $COMPLETION_FILE sed -i '/htmly/d' /home/$MY_USERNAME/README sed -i '/Htmly/d' /home/$MY_USERNAME/README + + function_check remove_ddns_domain + remove_ddns_domain $HTMLY_DOMAIN_NAME } function get_htmly_admin_password { diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index db29905c..a6ac22cf 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -292,6 +292,9 @@ function remove_hubzilla { sed -i '/hubzilla/d' $COMPLETION_FILE sed -i '/hubzilla/d' /home/$MY_USERNAME/README sed -i '/Hubzilla/d' /home/$MY_USERNAME/README + + function_check remove_ddns_domain + remove_ddns_domain $HUBZILLA_DOMAIN_NAME } function install_hubzilla { diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index 05b277b6..59038919 100755 --- a/src/freedombone-app-jitsi +++ b/src/freedombone-app-jitsi @@ -244,6 +244,9 @@ function remove_jitsi { remove_completion_param install_jitsi sed -i '/jitsi/d' ${COMPLETION_FILE} sed -i '/Jitsi/d' /home/${MY_USERNAME}/README + + function_check remove_ddns_domain + remove_ddns_domain $JITSI_DOMAIN_NAME } function install_jitsi_videobridge { @@ -529,5 +532,8 @@ function install_jitsi { install_jitsi_jicofo install_jitsi_meet + function_check add_ddns_domain + add_ddns_domain $JITSI_DOMAIN_NAME + APP_INSTALLED=1 } diff --git a/src/freedombone-app-mediagoblin b/src/freedombone-app-mediagoblin index 31783e63..895134d4 100755 --- a/src/freedombone-app-mediagoblin +++ b/src/freedombone-app-mediagoblin @@ -171,6 +171,9 @@ function restore_remote_mediagoblin { function remove_mediagoblin { remove_certs ${MEDIAGOBLIN_DOMAIN_NAME} + + function_check remove_ddns_domain + remove_ddns_domain $MEDIAGOBLIN_DOMAIN_NAME } function install_mediagoblin { diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 77d297c3..5a65346e 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -335,6 +335,9 @@ function remove_postactiv { fi sed -i '/Postactiv/d' /home/$MY_USERNAME/README remove_backup_database_local postactiv + + function_check remove_ddns_domain + remove_ddns_domain $POSTACTIV_DOMAIN_NAME } function install_postactiv_main {