|
@@ -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
|