瀏覽代碼

Updates logrotate.conf for Debian

/var/log group in Ubuntu is syslog. This formula breaks
Ubuntu logrotate.
tags/v0.9.0
Alejandro Bednarik 8 年之前
父節點
當前提交
dc7d03434b
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      logrotate/files/Debian/logrotate.conf

+ 6
- 0
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


Loading…
取消
儲存