mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-19 14:24:47 -07:00
global: fixes
This commit is contained in:
@@ -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}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user