1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00

Updates logrotate.conf for Debian

/var/log group in Ubuntu is syslog. This formula breaks
Ubuntu logrotate.
This commit is contained in:
Alejandro Bednarik 2016-06-13 14:49:33 -03:00 committed by abednarik
parent 6caf737c50
commit dc7d03434b

View file

@ -2,6 +2,12 @@
# rotate log files weekly # rotate log files weekly
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 # keep 4 weeks worth of backlogs
rotate 4 rotate 4