Merge "Remove old apache logs"

This commit is contained in:
Zuul 2018-07-21 14:54:24 +00:00 committed by Gerrit Code Review
commit 88756aa94e
1 changed files with 9 additions and 0 deletions

View File

@ -74,4 +74,13 @@ class askbot::site::cron (
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin'
}
# remove old apache logs
cron { 'apache-log-cleanup':
user => 'root',
hour => '1',
minute => '45',
command => "find /var/log/apache2 -name '*.log.gz' -mtime +30 -execdir rm {} \\;",
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin'
}
}