Skip to content

Commit

Permalink
fix fail2ban with stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 21, 2017
1 parent 5e711e9 commit edccf4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ install()
apt-get update
apt-get install fail2ban -y
update-rc.d fail2ban disable
rm -f /etc/fail2ban/jail.d/defaults-debian.conf
}

configure()
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ EOF
# fix permissions for ncp-web: shutdown button
sed -i 's|www-data.*|www-data ALL = NOPASSWD: /home/www/ncp-launcher.sh , /sbin/halt|' /etc/sudoers

# fix fail2ban misconfig in stretch
rm -f /etc/fail2ban/jail.d/defaults-debian.conf

# License
#
# This script is free software; you can redistribute it and/or modify it
Expand Down

0 comments on commit edccf4a

Please sign in to comment.