Browse Source

Remove fail2ban logs

Bob Mottram 8 years ago
parent
commit
fe874f3fc8
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/freedombone-logging

+ 1
- 0
src/freedombone-logging View File

@@ -156,6 +156,7 @@ else
156 156
     if [ -f /etc/fail2ban/fail2ban.conf ]; then
157 157
         sed -i 's|loglevel.*|loglevel = 1|g' /etc/fail2ban/fail2ban.conf
158 158
         sed -i 's|logtarget.*|logtarget = /dev/null|g' /etc/fail2ban/fail2ban.conf
159
+        shred -zu /var/log/fail2ban.*
159 160
     fi
160 161
 fi
161 162