Remove fail2ban logs

This commit is contained in:
Bob Mottram 2016-11-18 14:55:38 +00:00
parent c62e88f29f
commit fe874f3fc8
1 changed files with 1 additions and 0 deletions

View File

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