fail2ban template fix
This commit is contained in:
parent
2737e16429
commit
ef05942f0c
|
@ -3,8 +3,17 @@
|
||||||
{{ item.when }}
|
{{ item.when }}
|
||||||
rotate {{ item.keep }}
|
rotate {{ item.keep }}
|
||||||
compress
|
compress
|
||||||
|
# Do not rotate if empty
|
||||||
|
notifempty
|
||||||
|
|
||||||
delaycompress
|
delaycompress
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
postrotate
|
||||||
create 0640 root root
|
fail2ban-client flushlogs 1>/dev/null
|
||||||
|
endscript
|
||||||
|
|
||||||
|
# If fail2ban runs as non-root it still needs to have write access
|
||||||
|
# to logfiles.
|
||||||
|
create 640 {{ item.user }} adm
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue