mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
mediawiki: Utilize purging of packages and don't remove explicitly
- Purging mediawiki package removes /etc/mediawiki. There is no need to explicitly remove our two configuration files from /etc/mediawiki. Tests: - Setup mediawiki, change public registrations setting and uninstall. Reinstall and observe that public registrations setting is reset. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
414553ad93
commit
dd199fbfad
@ -185,5 +185,4 @@ def set_default_language(language: str):
|
||||
def uninstall():
|
||||
"""Remove Mediawiki's database and local config file."""
|
||||
shutil.rmtree('/var/lib/mediawiki-db', ignore_errors=True)
|
||||
pathlib.Path(LOCAL_SETTINGS_CONF).unlink(missing_ok=True)
|
||||
pathlib.Path(CONF_FILE).unlink(missing_ok=True)
|
||||
# /etc/mediawiki is removed on purge of mediawiki package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user