Browse Source

Ensure that hubzilla repos are no longer pointing to github

Bob Mottram 6 years ago
parent
commit
d25f54e468
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      src/freedombone-app-hubzilla

+ 12
- 0
src/freedombone-app-hubzilla View File

@@ -202,6 +202,18 @@ function reconfigure_hubzilla {
202 202
 }
203 203
 
204 204
 function upgrade_hubzilla {
205
+    # ensure that repos are no longer pointing to github
206
+    read_config_param HUBZILLA_REPO
207
+    if [[ "$HUBZILLA_REPO" == *'github'* ]]; then
208
+        HUBZILLA_REPO="https://framagit.org/hubzilla/core"
209
+        write_config_param HUBZILLA_REPO "$HUBZILLA_REPO"
210
+    fi
211
+    read_config_param HUBZILLA_ADDONS_REPO
212
+    if [[ "$HUBZILLA_ADDONS_REPO" == *'github'* ]]; then
213
+        HUBZILLA_ADDONS_REPO="https://framagit.org/hubzilla/addons"
214
+        write_config_param HUBZILLA_ADDONS_REPO "$HUBZILLA_ADDONS_REPO"
215
+    fi
216
+
205 217
     CURR_HUBZILLA_COMMIT=$(get_completion_param "hubzilla commit")
206 218
     if [[ "$CURR_HUBZILLA_COMMIT" == "$HUBZILLA_COMMIT" ]]; then
207 219
         return