fix: update phase2_post_check.sh to clarify Gitea API settings check and improve function naming

This commit is contained in:
S
2026-03-02 10:40:07 -05:00
parent c3b9a8c5bb
commit 828a061af4

View File

@@ -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'