From 1d9215fdd1eb4876dd9683023feb7254b6d0f1f0 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 1 Mar 2021 18:41:41 +0100 Subject: [PATCH] typo --- setup-scripts/blocklist-airtable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/blocklist-airtable.py b/setup-scripts/blocklist-airtable.py index 0157a680..60939993 100755 --- a/setup-scripts/blocklist-airtable.py +++ b/setup-scripts/blocklist-airtable.py @@ -43,7 +43,7 @@ async def block_skylinks_from_airtable(): message = "Siad blocklist endpoint responded with code " + str(response.status_code) + ": " + (response.text or "empty response") return print(message) or await send_msg(client, message, force_notify=True) - print("Purging nginx cache containing blocked skylinks") + print("Searching nginx cache for blocked files") cached_files_command = '/usr/bin/find /data/nginx/cache/ -type f | /usr/bin/xargs --no-run-if-empty -n1000 /bin/grep -El \'^KEY: .*(' + '|'.join(skylinks) + ')\'' cached_files_count = int(os.popen('docker exec -it nginx bash -c "' + cached_files_command + ' | wc -l"').read().strip())