mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
f630fb6059
commit
fb1898befc
105 files changed
+748
-644
No files matched your search
@@ -10,8 +10,9 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from plinth import app as app_module
|
||||
from plinth import menu
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
|
||||
from .manifest import backup # noqa, pylint: disable=unused-import
|
||||
from . import manifest
|
||||
|
||||
version = 2
|
||||
|
||||
@@ -79,6 +80,10 @@ class DateTimeApp(app_module.App):
|
||||
daemon = Daemon('daemon-datetime', managed_services[0])
|
||||
self.add(daemon)
|
||||
|
||||
backup_restore = BackupRestore('backup-restore-datetime',
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
def diagnose(self):
|
||||
"""Run diagnostics and return the results."""
|
||||
results = super().diagnose()
|
||||
|
||||
@@ -3,6 +3,4 @@
|
||||
Application manifest for datetime.
|
||||
"""
|
||||
|
||||
from plinth.modules.backups.api import validate as validate_backup
|
||||
|
||||
backup = validate_backup({'data': {'files': ['/etc/timezone']}})
|
||||
backup = {'data': {'files': ['/etc/timezone']}}
|
||||
Reference in new issue
Block a user