mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
deluge: Utilize purging of packages and don't remove explicitly
Tests: - None. deluge is not installable. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
5be1b1ad2b
commit
b51ed200f7
@ -160,7 +160,6 @@ def _wait_for_configuration(service, file_name):
|
||||
@privileged
|
||||
def uninstall():
|
||||
"""Remove configuration and service files."""
|
||||
for item in DELUGED_DEFAULT_FILE, DELUGE_WEB_SYSTEMD_SERVICE_PATH:
|
||||
pathlib.Path(item).unlink(missing_ok=True)
|
||||
|
||||
# /etc/default/deluged is removed on purge
|
||||
pathlib.Path(DELUGE_WEB_SYSTEMD_SERVICE_PATH).unlink(missing_ok=True)
|
||||
shutil.rmtree(DELUGE_CONF_DIR, ignore_errors=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user