Remove fail2ban logs
This commit is contained in:
parent
c62e88f29f
commit
fe874f3fc8
|
@ -156,6 +156,7 @@ else
|
|||
if [ -f /etc/fail2ban/fail2ban.conf ]; then
|
||||
sed -i 's|loglevel.*|loglevel = 1|g' /etc/fail2ban/fail2ban.conf
|
||||
sed -i 's|logtarget.*|logtarget = /dev/null|g' /etc/fail2ban/fail2ban.conf
|
||||
shred -zu /var/log/fail2ban.*
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue