From fbe59a3aac5264222545238308867fef1517a93c Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 22 Feb 2023 12:27:37 +0100 Subject: [PATCH] (bug) fix fabhub endpoint --- setup/upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/upgrade.sh b/setup/upgrade.sh index fe9d74801..b82f1cd73 100644 --- a/setup/upgrade.sh +++ b/setup/upgrade.sh @@ -178,12 +178,12 @@ version_check() target_version if [ "$TARGET" = 'custom' ] || [ "$IGNORE" = "true" ]; then return; fi - HTTP_CODE=$(curl -I -s -w "%{http_code}\n" -o /dev/null "https://hub.fab-manager.com/api/versions/check?version=$VERSION") + HTTP_CODE=$(curl -I -s -w "%{http_code}\n" -o /dev/null "https://hub.fab-manager.com/api/versions/next_step?version=$VERSION") if [ "$HTTP_CODE" != 200 ]; then printf "\n\n\e[91m[ ❌ ] Unable to check the next step version. Please check your internet connection or restart this script providing the \e[1m-i\e[0m\e[91m option\n\e[39m" exit 3 fi - STEP=$(\curl -sSL "https://hub.fab-manager.com/api/versions/latest" | jq -r '.upgrade_to.semver') + STEP=$(\curl -sSL "https://hub.fab-manager.com/api/versions/next_step?version=$VERSION" | jq -r '.next_step.semver') if verlt "$VERSION" "$STEP" && verlt "$STEP" "$TARGET"; then version_error "$STEP first"