#782256 logrotate should be silent if package is in removed state

Package:
fail2ban
Source:
fail2ban
Submitter:
Wouter Van Rooy
Date:
2021-10-12 21:39:03 UTC
Severity:
normal
Tags:
#782256#5
Date:
2015-04-09 14:35:10 UTC
From:
To:
Hi,

It seems the file /etc/logrotate.d/fail2ban gets left behind after removing fail2ban.
This causes cron to generate errors as fail2ban-client does not exist.


Regards

Wouter

#782256#10
Date:
2021-10-12 21:32:02 UTC
From:
To:
That the file is left behind by a remove is not a bug in itself, because
only a purge would delete it. But the logrotate configuration is missing
this check in the postrotate section:

test -x /usr/bin/fail2ban-client || exit 0