It still fails with the most recent version, though with different errors now:
/etc/cron.daily/logrotate:
/etc/denyhosts.conf: 28: SECURE_LOG: not found
/etc/denyhosts.conf: 36: HOSTS_DENY: not found
/etc/denyhosts.conf: 60: PURGE_DENY: not found
/etc/denyhosts.conf: 95: BLOCK_SERVICE: not found
/etc/denyhosts.conf: 110: DENY_THRESHOLD_INVALID: not found
/etc/denyhosts.conf: 121: DENY_THRESHOLD_VALID: not found
/etc/denyhosts.conf: 131: DENY_THRESHOLD_ROOT: not found
/etc/denyhosts.conf: 142: DENY_THRESHOLD_RESTRICTED: not found
/etc/denyhosts.conf: 155: WORK_DIR: not found
/etc/denyhosts.conf: 200: LOCK_FILE: not found
/etc/denyhosts.conf: 221: ADMIN_EMAIL: not found
/etc/denyhosts.conf: 232: SMTP_HOST: not found
/etc/denyhosts.conf: 233: SMTP_PORT: not found
/etc/denyhosts.conf: 252: Syntax error: newline unexpected
error: error running non-shared postrotate script for /var/log/denyhosts of '/var/log/denyhosts '
run-parts: /etc/cron.daily/logrotate exited with return code 1
The problem is that /etc/logrotate.d/denyhosts sources /etc/denyhosts.conf which is *not* a valid shell script, because there are space around equal signs of the configuration settings, e.g.:
SECURE_LOG = /var/log/auth.log
It still fails with the most recent version, though with different errors now:
/etc/cron. daily/logrotate : conf: 28: SECURE_LOG: not found conf: 36: HOSTS_DENY: not found conf: 60: PURGE_DENY: not found conf: 95: BLOCK_SERVICE: not found conf: 110: DENY_THRESHOLD_ INVALID: not found conf: 121: DENY_THRESHOLD_ VALID: not found conf: 131: DENY_THRESHOLD_ ROOT: not found conf: 142: DENY_THRESHOLD_ RESTRICTED: not found conf: 155: WORK_DIR: not found conf: 200: LOCK_FILE: not found conf: 221: ADMIN_EMAIL: not found conf: 232: SMTP_HOST: not found conf: 233: SMTP_PORT: not found conf: 252: Syntax error: newline unexpected daily/logrotate exited with return code 1
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
error: error running non-shared postrotate script for /var/log/denyhosts of '/var/log/denyhosts '
run-parts: /etc/cron.
The problem is that /etc/logrotate. d/denyhosts sources /etc/denyhosts.conf which is *not* a valid shell script, because there are space around equal signs of the configuration settings, e.g.:
SECURE_LOG = /var/log/auth.log