From a76631fb15d37055df4619bb3945834be11270c9 Mon Sep 17 00:00:00 2001
From: Koen <koen@revodux.com>
Date: Tue, 12 Sep 2023 08:20:53 +0000
Subject: [PATCH] Update deploy.sh

---
 deploy.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/deploy.sh b/deploy.sh
index ce61a00..978f3eb 100644
--- a/deploy.sh
+++ b/deploy.sh
@@ -13,11 +13,11 @@ cp SoundcloudConfig.json $DOCUMENT_ROOT/Soundcloud
 cp SoundcloudScript.js $DOCUMENT_ROOT/Soundcloud
 
 # Notify Cloudflare to wipe the CDN cache
-echo "Purging Cloudflare cache..."
+echo "Purging Cloudflare cache for zone $CLOUDFLARE_ZONE_ID..."
 curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/purge_cache" \
      -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
      -H "Content-Type: application/json" \
-     --data '{"purge_everything":true}'
+     --data '{"files":["https://plugins.grayjay.app/Soundcloud/soundcloud.png", "https://plugins.grayjay.app/Soundcloud/SoundcloudConfig.json", "https://plugins.grayjay.app/Soundcloud/SoundcloudScript.js"]}'
 
 # Take site back online
 echo "Bringing site back online..."
-- 
GitLab