aboutsummaryrefslogtreecommitdiffstats
path: root/main/fail2ban/fail2ban.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'main/fail2ban/fail2ban.logrotate')
-rw-r--r--main/fail2ban/fail2ban.logrotate4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/fail2ban/fail2ban.logrotate b/main/fail2ban/fail2ban.logrotate
index 5d22bd0395..f635c3ddde 100644
--- a/main/fail2ban/fail2ban.logrotate
+++ b/main/fail2ban/fail2ban.logrotate
@@ -4,6 +4,8 @@
missingok
compress
postrotate
- /usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
+ /usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
+ chown :wheel /var/log/fail2ban.log
+ chmod 640 /var/log/fail2ban.log
endscript
}