Fix fail2ban typo
This commit is contained in:
@@ -1018,7 +1018,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
# create fail2ban configuration files
|
# create fail2ban configuration files
|
||||||
if "fail2ban" in apt_packages:
|
if "fail2ban" in apt_packages:
|
||||||
WOService.restart_service(self, 'fail2ban')
|
WOService.restart_service(self, 'fail2ban')
|
||||||
if os.path.exists('/etc/fail2ban:'):
|
if os.path.exists('/etc/fail2ban'):
|
||||||
WOGit.add(self, ["/etc/fail2ban"],
|
WOGit.add(self, ["/etc/fail2ban"],
|
||||||
msg="Adding Fail2ban into Git")
|
msg="Adding Fail2ban into Git")
|
||||||
Log.info(self, "Configuring Fail2Ban")
|
Log.info(self, "Configuring Fail2Ban")
|
||||||
@@ -1042,6 +1042,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
if not WOService.reload_service(self, 'fail2ban'):
|
if not WOService.reload_service(self, 'fail2ban'):
|
||||||
WOGit.rollback(
|
WOGit.rollback(
|
||||||
self, ['/etc/fail2ban'], msg="Rollback f2b config")
|
self, ['/etc/fail2ban'], msg="Rollback f2b config")
|
||||||
|
WOService.restart_service(self, 'fail2ban')
|
||||||
else:
|
else:
|
||||||
WOGit.add(self, ["/etc/fail2ban"],
|
WOGit.add(self, ["/etc/fail2ban"],
|
||||||
msg="Adding Fail2ban into Git")
|
msg="Adding Fail2ban into Git")
|
||||||
|
|||||||
Reference in New Issue
Block a user