From d25f54e4686197e01ccd4e790d8b41944ef6fb5b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 19 Jun 2018 12:34:35 +0100 Subject: [PATCH] Ensure that hubzilla repos are no longer pointing to github --- src/freedombone-app-hubzilla | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index 577228ff..6cd290f8 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -202,6 +202,18 @@ function reconfigure_hubzilla { } function upgrade_hubzilla { + # ensure that repos are no longer pointing to github + read_config_param HUBZILLA_REPO + if [[ "$HUBZILLA_REPO" == *'github'* ]]; then + HUBZILLA_REPO="https://framagit.org/hubzilla/core" + write_config_param HUBZILLA_REPO "$HUBZILLA_REPO" + fi + read_config_param HUBZILLA_ADDONS_REPO + if [[ "$HUBZILLA_ADDONS_REPO" == *'github'* ]]; then + HUBZILLA_ADDONS_REPO="https://framagit.org/hubzilla/addons" + write_config_param HUBZILLA_ADDONS_REPO "$HUBZILLA_ADDONS_REPO" + fi + CURR_HUBZILLA_COMMIT=$(get_completion_param "hubzilla commit") if [[ "$CURR_HUBZILLA_COMMIT" == "$HUBZILLA_COMMIT" ]]; then return