From 828a061af429b37252213bf5f0f4d7bb736a70f5 Mon Sep 17 00:00:00 2001 From: S Date: Mon, 2 Mar 2026 10:40:07 -0500 Subject: [PATCH] fix: update phase2_post_check.sh to clarify Gitea API settings check and improve function naming --- phase2_post_check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phase2_post_check.sh b/phase2_post_check.sh index 969674d..cc0b090 100755 --- a/phase2_post_check.sh +++ b/phase2_post_check.sh @@ -52,14 +52,14 @@ check_token() { } run_check "Backup API token valid (returns correct username)" check_token -# Check 4: Gitea Actions enabled (verify via settings API) +# Check 4: Gitea API settings endpoint accessible # No org check here — the Fedora instance doesn't create an org. # Mirror repos are stored under the admin user's namespace. # shellcheck disable=SC2329 -check_actions() { +check_api_settings() { curl -sf -H "Authorization: token ${GITEA_BACKUP_ADMIN_TOKEN}" "${GITEA_BACKUP_INTERNAL_URL}/api/v1/settings/api" -o /dev/null } -run_check "Gitea API settings accessible (Actions check)" check_actions +run_check "Gitea API settings endpoint accessible" check_api_settings # Summary printf '\n'