Merge pull request #1324 from SkynetLabs/blocklist-refactor

Fix removing skylink from nginx
This commit is contained in:
Karol Wypchło 2021-10-27 14:36:53 +02:00 committed by GitHub
commit 2281394694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ do
# changes need to be applied to the /setup-scripts/blocklist-airtable.py # changes need to be applied to the /setup-scripts/blocklist-airtable.py
# script. # script.
cached_files_command="find /data/nginx/cache/ -type f | xargs -r grep -Els '^Skynet-Skylink: ${skylink}'" cached_files_command="find /data/nginx/cache/ -type f | xargs -r grep -Els '^Skynet-Skylink: ${skylink}'"
docker exec -it nginx bash -c "${cached_files_command}" | xargs -r rm docker exec -it nginx bash -c "${cached_files_command} | xargs -r rm"
echo ".. ⌁ Skylink ${skylink} Blocked" echo ".. ⌁ Skylink ${skylink} Blocked"
echo "--------------------------------------------" echo "--------------------------------------------"