security: Fix issue with Plinth locked out from sudo

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2018-05-08 05:11:27 -04:00
1 parent fded8e57ec
commit daeec0528b
2 files changed
+12 -2

No files matched your search

+6 -2
View File
@@ -23,7 +23,7 @@ from django.utils.translation import ugettext_lazy as _
from plinth import actions
from plinth.menu import main_menu
version = 3
version = 4
is_essential = True
@@ -50,7 +50,11 @@ def init():
def setup(helper, old_version=None):
"""Install the required packages"""
helper.install(managed_packages)
setup_fail2ban()
if not old_version:
setup_fail2ban()
if get_restricted_access_enabled():
set_restricted_access(True)
def setup_fail2ban():