From dc7d03434b3768e2c53b90b9b33ba47f8a2fc702 Mon Sep 17 00:00:00 2001 From: Alejandro Bednarik Date: Mon, 13 Jun 2016 14:49:33 -0300 Subject: [PATCH] Updates logrotate.conf for Debian /var/log group in Ubuntu is syslog. This formula breaks Ubuntu logrotate. --- logrotate/files/Debian/logrotate.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/logrotate/files/Debian/logrotate.conf b/logrotate/files/Debian/logrotate.conf index 4bd60ab..349f82a 100644 --- a/logrotate/files/Debian/logrotate.conf +++ b/logrotate/files/Debian/logrotate.conf @@ -2,6 +2,12 @@ # rotate log files weekly weekly +{% if grains['os'] == "Ubuntu" %} +# use the syslog group by default, since this is the owning group +# of /var/log/syslog. +su root syslog +{% endif %} + # keep 4 weeks worth of backlogs rotate 4