From 51d2d8bd33c63ea03f65089efc2c189e04b74970 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 31 Mar 2020 22:19:20 +0100 Subject: [PATCH] nginx: fix stray output in cleanup script --- cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5