Skip to content
Snippets Groups Projects
Commit 1704bfd6 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix fail2ban installation

parent 728e998a
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ def setup(interactive=True):
destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', '') or utils.get_conf('EMAIL_ADMINS', 'root@localhost')
maxretry = utils.get_conf('FAIL2BAN_MAXRETRY', '6')
bantime = utils.get_conf('FAIL2BAN_BANTIME', '30')
enabled = 'true' if utils.get_conf('FAIL2BAN_ENABLED', '0') == '0' else 'false'
enabled = 'true' if utils.get_conf('FAIL2BAN_ENABLED', '0') == '1' else 'false'
cmds = [
dict(
line='write',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment