From 054be0dc03deab0999931418e601a6e034b4a2e0 Mon Sep 17 00:00:00 2001 From: bjarkan Date: Wed, 26 Aug 2020 23:04:11 +0200 Subject: [PATCH] include the fail2ban feature not included before Need to relaunch fail2ban, but adding this will work. Checked more than twice... --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index fa236d2..2ef1129 100755 --- a/scripts/install +++ b/scripts/install @@ -217,6 +217,13 @@ ynh_print_info --message="Securing files and directories..." # Set permissions to app files chown -R $app: $final_path +##add jail2ban file +echo "[z-push] " > /etc/fail2ban/jail.d/z-push.conf +echo "enable = true" >> /etc/fail2ban/jail.d/z-push.conf +echo "port = http, https" >> /etc/fail2ban/jail.d/z-push.conf +echo "filter = z-push " >> /etc/fail2ban/jail.d/z-push.conf +echo "logpath = /var/log/z-push/z-push-error.log" >> /etc/fail2ban/jail.d/z-push.conf +## that easy #================================================= # SETUP LOGROTATE