diff --git a/templates/etc-logrotate-apache2 b/templates/etc-logrotate-apache2 index 4447105cb813364a2a0a5387e5239dc06b57cd76..f694d0379b0c6d3009fb43ff39831e91d3f1eb4f 100644 --- a/templates/etc-logrotate-apache2 +++ b/templates/etc-logrotate-apache2 @@ -1,20 +1,20 @@ {{ jailroot }}/{{ item.jail.name }}/var/log/apache2/*.log { - daily - missingok - rotate 14 - compress - delaycompress - notifempty - create 644 root {{ item.jail.name }} - sharedscripts - postrotate - if /etc/init.d/apache2 status > /dev/null ; then \ - /etc/init.d/apache2 reload > /dev/null; \ - fi; - endscript - prerotate - if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ - run-parts /etc/logrotate.d/httpd-prerotate; \ - fi; \ - endscript + daily + rotate 7 + missingok + compress + delaycompress + notifempty + create 644 root {{ item.jail.name }} + sharedscripts + postrotate + if /etc/init.d/apache2 status > /dev/null ; then \ + /etc/init.d/apache2 reload > /dev/null; \ + fi; + endscript + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi; + endscript }