Mercurial > repos > other > Puppet
annotate common/logrotate-trac @ 127:bafd91f195de puppet-3.6
Fix PHP reporting in logwatch
* Read correct files
* Filter correct date format (as per Apache config)
* Don't do "next unless" filtering in script
* Handle Apache 2.4 date format
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 17 Sep 2016 15:19:54 +0100 |
parents | 600b3bfb5484 |
children |
rev | line source |
---|---|
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 /srv/trac/projects/*/log/trac.log { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 weekly |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 rotate 7 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 missingok |
50
9c0ed2404c59
Fix Trac log rotation with correct username
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
5 create 640 apache apache |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 compress |
82
600b3bfb5484
New LogRotate is picky about usernames for security reasons. Fix it for Trac logs.
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
7 su apache apache |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 } |