From ca93511fe2b4d41b4795e1e7e2ca7c4803e8f7b9 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Mon, 6 May 2019 04:24:57 +0530 Subject: [PATCH] fix fail2ban --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b8f4a48..eae7a98 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -66,7 +66,7 @@ EOF ynh_store_file_checksum "$finalfail2banjailconf" ynh_store_file_checksum "$finalfail2banfilterconf" - systemctl restart fail2ban + service fail2ban restart local fail2ban_error="$(journalctl -u fail2ban | tail -n50 | grep "WARNING.*$app.*")" if [ -n "$fail2ban_error" ] then