I cleared out my apache logs last week and now started to get these errors. Any ideas how I can fix this?
/etc/cron.daily/logrotate:
logrotate_script: -c: line 1: syntax error near unexpected token `20'
logrotate_script: -c: line 1: ` find /var/log/apache2 -name "*.log.gz" -maxdepth 1 +mtime <20> -delete &>/dev/null'
error: error running shared postrotate script for '/var/log/apache2/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
File: /etc/logrotate.d/apache2
/var/log/apache2/*.log {
daily
missingok
rotate 20
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/etc/init.d/apache2 reload > /dev/null
endscript
postrotate
find /var/log/apache2 -name "*.log.gz" -maxdepth 1 +mtime <20> -delete &>/dev/null
endscript
}