global: fixes

This commit is contained in:
nym21
2026-04-27 11:19:05 +02:00
parent e543e4a5db
commit b24bfdc15c
15 changed files with 116 additions and 111 deletions

View File

@@ -10,8 +10,8 @@ fi
echo "=== Cloudflare cache purge ==="
echo ""
if [ -z "$CF_API_TOKEN" ]; then
echo "CF_API_TOKEN not set. Add it to scripts/.tokens"
if [ -z "$CF_PURGE_API_TOKEN" ]; then
echo "CF_PURGE_API_TOKEN not set. Add it to scripts/.tokens"
exit 1
fi
if [ -z "$CF_ZONE_ID" ]; then
@@ -21,7 +21,7 @@ fi
RESPONSE=$(curl -sS -X POST \
"https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" \
-H "Authorization: Bearer $CF_API_TOKEN" \
-H "Authorization: Bearer $CF_PURGE_API_TOKEN" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}')