Fail2ban updated: logrotate patch removed.
This commit is contained in:
parent
100d336d00
commit
e0f29be215
|
@ -39,11 +39,6 @@ src_prepare() {
|
|||
# Replace /var/run with /run, but not in the top source directory
|
||||
sed -i -e 's|/var\(/run/fail2ban\)|\1|g' $( find . -type f -mindepth 2 ) || die
|
||||
|
||||
# Fix bashisms and do not direct useful output to /dev/null (bug #536320)
|
||||
# Remove global logrotate settings (bug #549856)
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-0.9.2-logrotate.patch
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
--- a/files/fail2ban-logrotate
|
||||
+++ b/files/fail2ban-logrotate
|
||||
@@ -6,10 +6,8 @@
|
||||
# https://github.com/fail2ban/fail2ban/blob/debian/debian/fail2ban.logrotate
|
||||
|
||||
/var/log/fail2ban.log {
|
||||
- rotate 7
|
||||
missingok
|
||||
notifempty
|
||||
- compress
|
||||
postrotate
|
||||
/usr/bin/fail2ban-client flushlogs 1>/dev/null || true
|
||||
endscript
|
Loading…
Reference in New Issue