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
@@ -15,12 +15,12 @@ from plinth import cfg, menu
|
||||
from plinth.errors import ActionError
|
||||
from plinth.modules import names
|
||||
from plinth.modules.apache.components import diagnose_url
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.modules.names.components import DomainType
|
||||
from plinth.signals import domain_added, domain_removed, post_module_loading
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
from . import components
|
||||
from .manifest import backup # noqa, pylint: disable=unused-import
|
||||
from . import components, manifest
|
||||
|
||||
version = 3
|
||||
|
||||
@@ -74,6 +74,10 @@ class LetsEncryptApp(app_module.App):
|
||||
'letsencrypt:index', parent_url_name='system')
|
||||
self.add(menu_item)
|
||||
|
||||
backup_restore = BackupRestore('backup-restore-letsencrypt',
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
domain_added.connect(on_domain_added)
|
||||
domain_removed.connect(on_domain_removed)
|
||||
|
||||
|
||||
@@ -3,7 +3,5 @@
|
||||
Application manfiest for letsencrypt.
|
||||
"""
|
||||
|
||||
from plinth.modules.backups.api import validate as validate_backup
|
||||
|
||||
# XXX: Backup and restore the Apache site configuration.
|
||||
backup = validate_backup({'secrets': {'directories': ['/etc/letsencrypt/']}})
|
||||
backup = {'secrets': {'directories': ['/etc/letsencrypt/']}}
|
||||
Reference in new issue
Block a user