mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
security: minor style fixes
This commit is contained in:
parent
a8a5da996e
commit
276dac2df2
@ -35,5 +35,4 @@ class SecurityForm(forms.Form):
|
||||
label=_('Fail2ban (recommended)'), required=False,
|
||||
help_text=_('When this option is enabled, fail2ban will limit brute force '
|
||||
'break-in attempts to the SSH server and other password protected '
|
||||
'internet-services which are enabled.'
|
||||
))
|
||||
'internet-services which are enabled.'))
|
||||
|
||||
@ -70,6 +70,6 @@ def _apply_changes(request, old_status, new_status):
|
||||
|
||||
if old_status['fail2ban_enabled'] != new_status['fail2ban_enabled']:
|
||||
if new_status['fail2ban_enabled']:
|
||||
actions.superuser_run('service',['enable','fail2ban'])
|
||||
actions.superuser_run('service', ['enable', 'fail2ban'])
|
||||
else:
|
||||
actions.superuser_run('service',['disable','fail2ban'])
|
||||
actions.superuser_run('service', ['disable', 'fail2ban'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user