fail2ban template fix

This commit is contained in:
muppeth 2023-11-11 23:59:49 +01:00
parent 2737e16429
commit ef05942f0c
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 11 additions and 2 deletions

View File

@ -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
} }