mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
*: Drop use of managed_services, rely on Daemon component
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
ba4b58de78
commit
781d8fa18b
39 files changed
+123
-161
No files matched your search
@@ -12,7 +12,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
from plinth import actions
|
||||
from plinth import app as app_module
|
||||
from plinth import menu, module_loader
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.daemon import Daemon, RelatedDaemon
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.package import Packages
|
||||
|
||||
@@ -22,8 +22,6 @@ version = 7
|
||||
|
||||
is_essential = True
|
||||
|
||||
managed_services = ['fail2ban']
|
||||
|
||||
ACCESS_CONF_FILE = '/etc/security/access.d/50freedombox.conf'
|
||||
ACCESS_CONF_FILE_OLD = '/etc/security/access.conf'
|
||||
ACCESS_CONF_SNIPPET = '-:ALL EXCEPT root fbx plinth (admin) (sudo):ALL'
|
||||
@@ -54,6 +52,9 @@ class SecurityApp(app_module.App):
|
||||
packages = Packages('packages-security', ['fail2ban', 'debsecan'])
|
||||
self.add(packages)
|
||||
|
||||
daemon = RelatedDaemon('related-daemon-fail2ban', 'fail2ban')
|
||||
self.add(daemon)
|
||||
|
||||
backup_restore = BackupRestore('backup-restore-security',
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
Reference in new issue
Block a user