From: Grant Slater Date: Tue, 31 Mar 2020 21:19:20 +0000 (+0100) Subject: nginx: fix stray output in cleanup script X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/51d2d8bd33c63ea03f65089efc2c189e04b74970 nginx: fix stray output in cleanup script --- diff --git a/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb b/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb index bb1cf8f36..09ce9a5b3 100644 --- a/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb +++ b/cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb @@ -1,7 +1,7 @@ #!/bin/bash set -e -/usr/bin/renice -n 19 $$ -/usr/bin/ionice -c 3 -p $$ +/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