mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
security: minor style fixes
This commit is contained in:
2 files changed
+3
-4
No files matched your search
@@ -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'])
|
||||
Reference in new issue
Block a user