X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/51d2d8bd33c63ea03f65089efc2c189e04b74970..HEAD:/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb diff --git a/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb b/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb deleted file mode 100644 index 09ce9a5b3..000000000 --- a/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -set -e -/usr/bin/renice -n 19 $$ >/dev/null -/usr/bin/ionice -c 3 -p $$ >/dev/null -[[ -d "/var/cache/nginx/fastcgi-cache" ]] && /usr/bin/find /var/cache/nginx/fastcgi-cache/?/??/ -maxdepth 1 -type f -delete || true -[[ -d "/var/cache/nginx/fastcgi-cache" ]] && /usr/bin/find /var/cache/nginx/fastcgi-cache/ -maxdepth 2 -mindepth 2 -type d -wholename '*/?/??' -delete -[[ -d "/var/cache/nginx/fastcgi-cache" ]] && /usr/bin/find /var/cache/nginx/fastcgi-cache/ -maxdepth 1 -mindepth 1 -type d -wholename '*/?' -delete -[[ -d "/var/cache/nginx/proxy-cache" ]] && /usr/bin/find /var/cache/nginx/proxy-cache/?/??/ -maxdepth 1 -type f -delete || true -[[ -d "/var/cache/nginx/proxy-cache" ]] && /usr/bin/find /var/cache/nginx/proxy-cache/ -maxdepth 2 -mindepth 2 -type d -wholename '*/?/??' -delete -[[ -d "/var/cache/nginx/proxy-cache" ]] && /usr/bin/find /var/cache/nginx/proxy-cache/ -maxdepth 1 -mindepth 1 -type d -wholename '*/?' -delete