Ensure that hubzilla repos are no longer pointing to github

This commit is contained in:
Bob Mottram 2018-06-19 12:34:35 +01:00
parent d488d661a1
commit d25f54e468
1 changed files with 12 additions and 0 deletions

View File

@ -202,6 +202,18 @@ function reconfigure_hubzilla {
} }
function upgrade_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") CURR_HUBZILLA_COMMIT=$(get_completion_param "hubzilla commit")
if [[ "$CURR_HUBZILLA_COMMIT" == "$HUBZILLA_COMMIT" ]]; then if [[ "$CURR_HUBZILLA_COMMIT" == "$HUBZILLA_COMMIT" ]]; then
return return