]> git.openstreetmap.org Git - chef.git/commitdiff
nginx: fix stray output in cleanup script
authorGrant Slater <git@firefishy.com>
Tue, 31 Mar 2020 21:19:20 +0000 (22:19 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 31 Mar 2020 21:19:20 +0000 (22:19 +0100)
cookbooks/nginx/templates/default/nginx-old-cache-cleanup.erb

index bb1cf8f36026413e92a5faf9b97ef6a7456fd633..09ce9a5b3fe1b69e9098e3e8e8ddbe14c8fc447e 100644 (file)
@@ -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