nbenedek 30b0019865
wordpress: Completely uninstall app
* When app is uninstalled, remove config files and drop the database
* Declare PUBLIC_ACCESS_FILE with pathlib.Path
* Add public access file to the backup manifest

Tests:
1. Install and setup wordpress
2. Reinstall the app and confirm that the initial setup page is shown to the user
3. Functional tests passed

Signed-off-by: nbenedek <contact@nbenedek.me>
[sunil: Update docstrings, minor refactoring]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-04-14 18:58:59 +05:30

23 lines
494 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
from django.utils.translation import gettext_lazy as _
clients = [{
'name': _('WordPress'),
'platforms': [{
'type': 'web',
'url': '/wordpress/'
}]
}]
backup = {
'data': {
'files': ['/var/lib/plinth/backups-data/wordpress-database.sql',
'/etc/wordpress/is_public'],
'directories': ['/var/lib/wordpress/']
},
'secrets': {
'directories': ['/etc/wordpress/']
},
}