Update scripts/blocklist-skylink.sh

Co-authored-by: Matthew Sevey <mjsevey@gmail.com>
This commit is contained in:
firyx 2021-10-26 09:43:21 +02:00 committed by GitHub
parent 80373bb73f
commit ec02e9afa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ do
docker exec sia siac skynet blocklist add "${skylink}" docker exec sia siac skynet blocklist add "${skylink}"
# Remove from NGINX cache # Remove from NGINX cache
# NOTE: If there are changes to how the NGINX cache is being cleared, the same changes need to be applied to the /setup-scripts/blocklist-airtable.py 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