mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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():
|
def uninstall():
|
||||||
"""Remove Mediawiki's database and local config file."""
|
"""Remove Mediawiki's database and local config file."""
|
||||||
shutil.rmtree('/var/lib/mediawiki-db', ignore_errors=True)
|
shutil.rmtree('/var/lib/mediawiki-db', ignore_errors=True)
|
||||||
pathlib.Path(LOCAL_SETTINGS_CONF).unlink(missing_ok=True)
|
# /etc/mediawiki is removed on purge of mediawiki package
|
||||||
pathlib.Path(CONF_FILE).unlink(missing_ok=True)
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user