From c4b966ff2a977b8c0923d4f8ad403d86454883cb Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 5 Aug 2018 19:11:02 +0200 Subject: [PATCH] Fix fail2ban helper --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 21234d0..2b85245 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -517,7 +517,7 @@ EOF ynh_store_file_checksum "$finalfail2banjailconf" ynh_store_file_checksum "$finalfail2banfilterconf" - systemctl reload fail2ban + systemctl restart fail2ban local fail2ban_error="$(journalctl -u fail2ban | tail -n50 | grep "WARNING.*$app.*")" if [ -n "$fail2ban_error" ] then @@ -532,7 +532,7 @@ EOF ynh_remove_fail2ban_config () { ynh_secure_remove "/etc/fail2ban/jail.d/$app.conf" ynh_secure_remove "/etc/fail2ban/filter.d/$app.conf" - systemctl reload fail2ban + systemctl restart fail2ban } #=================================================