backups: Use the backup component in all apps

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2021-01-04 13:47:38 +02:00
1 parent f630fb6059
commit fb1898befc
105 files changed
+748 -644

No files matched your search

+6 -1
View File
@@ -12,9 +12,10 @@ from plinth import actions
from plinth import app as app_module
from plinth import cfg, menu
from plinth.daemon import Daemon
from plinth.modules.backups.components import BackupRestore
from plinth.utils import Version, format_lazy, import_from_gi
from .manifest import backup # noqa, pylint: disable=unused-import
from . import manifest
gio = import_from_gi('Gio', '2.0')
glib = import_from_gi('GLib', '2.0')
@@ -74,6 +75,10 @@ class FirewallApp(app_module.App):
daemon = Daemon('daemon-firewall', managed_services[0])
self.add(daemon)
backup_restore = BackupRestore('backup-restore-firewall',
**manifest.backup)
self.add(backup_restore)
def _run_setup():
"""Run firewalld setup."""
+1 -3
View File
@@ -3,6 +3,4 @@
Application manifest for firewall.
"""
from plinth.modules.backups.api import validate as validate_backup
backup = validate_backup({})
backup = {}