From bfe8ac9477e2070378ce286e2b104913d710c5be Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 2 May 2018 09:34:47 +1000 Subject: [PATCH] Reduce log retention to 7 days out of the box Remove notifempty so logs unconditionally rotate --- templates/web.template.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index 1414947..ab2522f 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -227,11 +227,10 @@ run: contents: | /shared/log/rails/*.log { - rotate 14 + rotate 7 dateext daily missingok - notifempty delaycompress compress postrotate @@ -245,10 +244,9 @@ run: /var/log/nginx/*.log { daily missingok - rotate 14 + rotate 7 compress delaycompress - notifempty create 0644 www-data www-data sharedscripts postrotate -- 2.25.1