Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-08-22 01:16:47 +0300
committernachoparker <nacho@ownyourbits.com>2017-08-22 01:16:47 +0300
commitedccf4a7e196762dd973f3701e217c5f7d743eb3 (patch)
tree77a7b554afc67232566baff26c20fe5318fde125
parent5e711e9ffd8f38928481981be8312f03393d1147 (diff)
fix fail2ban with stretchv0.24.1
-rw-r--r--etc/nextcloudpi-config.d/fail2ban.sh1
-rwxr-xr-xupdate.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/fail2ban.sh b/etc/nextcloudpi-config.d/fail2ban.sh
index 905916a1..d077fed8 100644
--- a/etc/nextcloudpi-config.d/fail2ban.sh
+++ b/etc/nextcloudpi-config.d/fail2ban.sh
@@ -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()
diff --git a/update.sh b/update.sh
index 328f4455..d315392b 100755
--- a/update.sh
+++ b/update.sh
@@ -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