diff --git a/plugin.sh b/plugin.sh index a2b565f..b7efd33 100755 --- a/plugin.sh +++ b/plugin.sh @@ -5,7 +5,7 @@ set -e ABRA=/root/.local/bin/abra PLUGIN_BRANCH=${PLUGIN_BRANCH:-main} -PLUGIN_HOST=${PLUGIN_HOST:-git.autonomic.zone} +PLUGIN_HOST=${PLUGIN_HOST:-git.coopcloud.tech} PLUGIN_PORT=${PLUGIN_PORT:-2222} checkout_main_or_master() { @@ -37,10 +37,10 @@ run_abra_cmd() { recipe=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2) echo "Automagically detected $recipe as desired recipe repository, cloning now..." - git clone "https://git.autonomic.zone/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe" + git clone "https://${PLUGIN_HOST}/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe" cd "/root/.abra/apps/$recipe" && checkout_main_or_master && \ git remote rm origin && \ - git remote add origin "ssh://git@git.autonomic.zone:2222/coop-cloud/$recipe.git" + git remote add origin "ssh://git@${PLUGIN_HOST}:${PLUGIN_PORT}/coop-cloud/$recipe.git" git push --set-upstream origin "$PLUGIN_BRANCH" fi