From 24ab5063e0b4092e3db9627cd16c1bc5d948d5c6 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 24 Nov 2020 14:40:39 +0100 Subject: [PATCH] fix cache prune docker command --- scripts/blocklist-skylink.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/blocklist-skylink.sh b/scripts/blocklist-skylink.sh index 6a3c7d42..8cc19eda 100755 --- a/scripts/blocklist-skylink.sh +++ b/scripts/blocklist-skylink.sh @@ -44,7 +44,7 @@ do ###################################################### # purge nginx cache after all the skylinks are blocked ###################################################### - ssh -q -t user@${server} 'rm -rf /home/user/skynet_webportal/docker/data/nginx/cache' + ssh -q -t user@${server} 'docker exec nginx sh -c "rm -rf /data/nginx/cache/*"' echo ".... 🗑️ Pruned nginx cache on ${server}" done