mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Although there are no issues with kiwix like for calibre, it is the right way to do this. Tests: - Without patch, restore the app on testing from a backup on stable machine and notice that the data folder is owned by nobody:nogroup but files inside are owned by a kiwix-server-freedombox user and group. This is not ideal. - With patch, restore again notice that the library is accessible and all the files are owned by nobody:nogroup. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
29 lines
594 B
Python
29 lines
594 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from plinth.clients import validate
|
|
|
|
clients = validate([{
|
|
'name': _('Kiwix'),
|
|
'platforms': [{
|
|
'type': 'web',
|
|
'url': '/kiwix'
|
|
}]
|
|
}])
|
|
|
|
backup = {
|
|
'data': {
|
|
'directories': ['/var/lib/private/kiwix-server-freedombox/']
|
|
},
|
|
'services': ['kiwix-server-freedombox'],
|
|
'delete_before_restore': ['/var/lib/private/kiwix-server-freedombox/']
|
|
}
|
|
|
|
tags = [
|
|
_('Offline reader'),
|
|
_('Archival'),
|
|
_('Censorship resistance'),
|
|
_('Wikipedia')
|
|
]
|