nbenedek 17e062e829
rssbridge: Completely uninstall app
* make ENABLE_LIST a constant
and declare PUBLIC_ACCESS_FILE with pathlib.Path()
* add PUBLIC_ACCESS_FILE to the backup manifest
* Remove PUBLIC_ACCESS_FILE and ENABLE_LIST

Tests:
1. Install the app and enable public access
2. Reinstall the app and confirm the public access is reset to default
3. Functional tests passed

Signed-off-by: nbenedek <contact@nbenedek.me>
[sunil: Update docstrings, make uninstall fail-safe]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-04-12 15:10:17 +05:30

22 lines
366 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
from django.utils.translation import gettext_lazy as _
"""
Application manifest for RSS-Bridge.
"""
clients = [{
'name': _('RSS-Bridge'),
'platforms': [{
'type': 'web',
'url': '/rss-bridge/'
}]
}]
backup = {
'data': {
'files': ['/etc/rss-bridge/is_public']
}
}