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

fix action ternary

parent 8c164af9
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ def setup(interactive=True): ...@@ -17,7 +17,7 @@ def setup(interactive=True):
os.makedirs('/etc/fail2ban/filter.d', exist_ok=True) os.makedirs('/etc/fail2ban/filter.d', exist_ok=True)
os.makedirs('/etc/fail2ban/jail.d', exist_ok=True) os.makedirs('/etc/fail2ban/jail.d', exist_ok=True)
dir_path = utils.get_dir(__file__) dir_path = utils.get_dir(__file__)
action = 'action_mwl' if bool(utils.get_conf('FAIL2BAN_SEND_EMAIL', '')) else 'action_' action = 'action_mwl' if utils.get_conf('FAIL2BAN_SEND_EMAIL', '') != '0' else 'action_'
sender = utils.get_conf('EMAIL_SENDER', 'root@localhost') sender = utils.get_conf('EMAIL_SENDER', 'root@localhost')
destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', 'root@localhost') destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', 'root@localhost')
maxretry = utils.get_conf('FAIL2BAN_MAXRETRY', '6') maxretry = utils.get_conf('FAIL2BAN_MAXRETRY', '6')
......
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