Skip to content

Commit

Permalink
make sure ufw.log always exists for fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiltonp committed Jul 5, 2019
1 parent 88da901 commit 25f3bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/ncp/SECURITY/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ install()
apt-get update
apt-get install --no-install-recommends -y fail2ban whois
update-rc.d fail2ban disable
sed -e 's:\(touch /var/log/fail2ban.log\):\1 /var/log/ufw.log:g' /etc/init.d/fail2ban
rm -f /etc/fail2ban/jail.d/defaults-debian.conf

[[ "$DOCKERBUILD" == 1 ]] && {
Expand Down

0 comments on commit 25f3bca

Please sign in to comment.