This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-06 12:35:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# We execute the nginx cache pruning subscript from docker container so that we
|
|
|
|
# can run the pruning script in user crontab without sudo.
|
|
|
|
docker run --rm -v /home/user:/home/user bash /home/user/skynet-webportal/scripts/lib/nginx-prune-cache-subscript.sh
|
2021-12-13 11:48:12 +00:00
|
|
|
|
|
|
|
# Some cache files are deleted, but are kept open, we hot reload nginx to get
|
|
|
|
# them closed and removed from filesystem.
|
|
|
|
docker exec nginx nginx -s reload
|