]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/dacs/templates/dacs.logrotate.erb
Do not use "su" in logrotate on squeeze
[dsa-puppet.git] / modules / dacs / templates / dacs.logrotate.erb
diff --git a/modules/dacs/templates/dacs.logrotate.erb b/modules/dacs/templates/dacs.logrotate.erb
new file mode 100644 (file)
index 0000000..5587631
--- /dev/null
@@ -0,0 +1,20 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+/var/log/dacs/*log {
+       daily
+       dateext
+       missingok
+       rotate 28
+       compress
+       delaycompress
+       create 640 www-data www-data
+<% if @lsbmajdistrelease >= '7' -%>
+       su root www-data
+<% else -%>
+       notifempty
+<% end -%>
+       sharedscripts
+}