mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
shaarli: Add backup component
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
855875daaf
commit
1450551332
@ -8,6 +8,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
from plinth import app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.package import Packages
|
||||
|
||||
@ -62,6 +63,10 @@ class ShaarliApp(app_module.App):
|
||||
webserver = Webserver('webserver-shaarli', 'shaarli')
|
||||
self.add(webserver)
|
||||
|
||||
backup_restore = BackupRestore('backup-restore-shaarli',
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
|
||||
def setup(helper, old_version=None):
|
||||
"""Install and configure the module."""
|
||||
|
||||
@ -28,3 +28,5 @@ clients = [{
|
||||
'url': '/shaarli/'
|
||||
}]
|
||||
}]
|
||||
|
||||
backup = {'data': {'directories': ['/var/lib/shaarli/data']}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user