From 5b12f3d41ea167726486c403730160e1ad65936c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 1 Jun 2020 17:12:57 +0200 Subject: [PATCH] clear nginx cache after blacklisting --- setup-scripts/blacklist.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup-scripts/blacklist.sh b/setup-scripts/blacklist.sh index 18c27382..12baf9c2 100755 --- a/setup-scripts/blacklist.sh +++ b/setup-scripts/blacklist.sh @@ -10,6 +10,8 @@ for server in "germany.siasky.net" "us-east.siasky.net" "us-west.siasky.net" "he do echo "⌁ Blacklisting on ${server}" ssh -q -t user@${server} 'curl -A Sia-Agent --user "":$(cat ~/.sia/apipassword) --data '"'"'{"add":["'$1'"]}'"'"' "localhost:9980/skynet/blacklist"' + ssh -q -t user@${server} 'rm -rf ~/skynet_webportal/docker/data/nginx/cache' # remove cache from docker-managed portals + ssh -q -t user@${server} 'sudo rm -rf /tmp/nginx' # remove cache from legacy non-docker portals done echo "✓ All portals succesfully blacklisted provided skylink"