From 27a98cab8d52877ae80763346f3d9d3d3abc37d6 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 7 Aug 2020 16:07:31 +0200 Subject: [PATCH] Fix fail2ban-client reload --- wo/cli/plugins/stack_pref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index 1cdbb8d..94ffef6 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -1060,7 +1060,7 @@ def post_pref(self, apt_packages, packages, upgrade=False): 'fail2ban-forbidden.mustache', data, overwrite=False) - if not WOService.reload_service(self, 'fail2ban'): + if not WOShellExec.cmd_exec(self, 'fail2ban-client reload'): WOGit.rollback( self, ['/etc/fail2ban'], msg="Rollback f2b config") WOService.restart_service(self, 'fail2ban')