fix: update phase2_post_check.sh to clarify Gitea API settings check and improve function naming
This commit is contained in:
@@ -52,14 +52,14 @@ check_token() {
|
|||||||
}
|
}
|
||||||
run_check "Backup API token valid (returns correct username)" 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.
|
# No org check here — the Fedora instance doesn't create an org.
|
||||||
# Mirror repos are stored under the admin user's namespace.
|
# Mirror repos are stored under the admin user's namespace.
|
||||||
# shellcheck disable=SC2329
|
# 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
|
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
|
# Summary
|
||||||
printf '\n'
|
printf '\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user