fail2ban template fix
This commit is contained in:
parent
2737e16429
commit
ef05942f0c
|
@ -3,8 +3,17 @@
|
|||
{{ item.when }}
|
||||
rotate {{ item.keep }}
|
||||
compress
|
||||
# Do not rotate if empty
|
||||
notifempty
|
||||
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 0640 root root
|
||||
postrotate
|
||||
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 New Issue