From 5491800fb98d89ad7c455a358e970b4cc9ef3240 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 11 Jun 2017 19:17:37 +0200 Subject: [PATCH] Add reload fail2ban --- scripts/upgrade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index ee3b7be..2f93ab9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -211,12 +211,13 @@ ynh_app_setting_set "$real_app" skipped_regex \ "$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" # Add fail2ban rules -sudo cp ../conf/nextcloud_fail2ban.conf /etc/fail2ban/filter.d/ -sudo cp ../conf/jail_nextcloud.local /etc/fail2ban/jail.d/ +sudo cp ../conf/nextcloud_fail2ban.conf /etc/fail2ban/filter.d/nextcloud.conf +sudo cp ../conf/jail_nextcloud.local /etc/fail2ban/jail.d/nextcloud.local # Reload services sudo service php5-fpm restart || true sudo service nginx reload || true +sudo fail2ban-client reload # Add cron job cron_path="/etc/cron.d/$app"