From e2138e664d45bd90e9851c077b3c57e300759385 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 16 Aug 2021 19:46:22 +0200 Subject: [PATCH] Update URLs, use `host` option --- plugin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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