Fix fail2ban-client reload

This commit is contained in:
VirtuBox
2020-08-07 16:07:31 +02:00
parent d30a5d7226
commit 27a98cab8d

View File

@@ -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')