From a8e08a1c4cb78c7af95b8d498a4f120b7967388c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 30 Aug 2024 07:08:23 +0100 Subject: [PATCH] Fix log rotation on web servers --- cookbooks/web/templates/default/logrotate.web.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index 608fd4d38..03c3cb08a 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -7,6 +7,7 @@ compress delaycompress notifempty + su rails rails create 0660 rails rails sharedscripts postrotate