From 178f0ee86ef5c3ca57157536f5c062def10fd9aa Mon Sep 17 00:00:00 2001 From: Koen Date: Tue, 12 Sep 2023 07:20:57 +0000 Subject: [PATCH] Update deploy.sh --- deploy.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index ebd83de..fd77604 100644 --- a/deploy.sh +++ b/deploy.sh @@ -7,9 +7,10 @@ touch $DOCUMENT_ROOT/maintenance.file # Swap over the content echo "Deploying content..." -cp peertube.png $DOCUMENT_ROOT/ -cp PeerTubeConfig.json $DOCUMENT_ROOT/ -cp PeerTubeScript.js $DOCUMENT_ROOT/ +mkdir -p $DOCUMENT_ROOT/PeerTube +cp peertube.png $DOCUMENT_ROOT/PeerTube +cp PeerTubeConfig.json $DOCUMENT_ROOT/PeerTube +cp PeerTubeScript.js $DOCUMENT_ROOT/PeerTube # Notify Cloudflare to wipe the CDN cache echo "Purging Cloudflare cache..." @@ -20,4 +21,4 @@ curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/pur # Take site back online echo "Bringing site back online..." -rm $DOCUMENT_ROOT/maintenance.file \ No newline at end of file +rm $DOCUMENT_ROOT/maintenance.file