From f7d289bcd6cea458bbe5950572163d2c1c5ab57d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 8 Apr 2025 13:50:49 -0700 Subject: [PATCH] zoph: Don't fail while uninstalling Fixes: https://discuss.freedombox.org/t/solved-zoph-uninstall-failure/3431 There is a debconf question being asked about remove the uploaded files while uninstalling the package. If it is not answered, removal fails. So, answer the question during installation. Re-run setup so that answer is set. Tests: - In Bookworm and Trixie, install the app, upload an image and uninstall it. Uninstall is successful and directory /var/lib/zoph does not exist. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/zoph/__init__.py | 2 +- plinth/modules/zoph/privileged.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/zoph/__init__.py b/plinth/modules/zoph/__init__.py index 5526da95f..223fefdef 100644 --- a/plinth/modules/zoph/__init__.py +++ b/plinth/modules/zoph/__init__.py @@ -44,7 +44,7 @@ class ZophApp(app_module.App): app_id = 'zoph' - _version = 2 + _version = 3 configure_when_disabled = False diff --git a/plinth/modules/zoph/privileged.py b/plinth/modules/zoph/privileged.py index 12c009606..72ee20209 100644 --- a/plinth/modules/zoph/privileged.py +++ b/plinth/modules/zoph/privileged.py @@ -23,6 +23,7 @@ def pre_install(): 'zoph zoph/dbconfig-upgrade boolean true', 'zoph zoph/dbconfig-remove boolean true', 'zoph zoph/mysql/admin-user string root', + 'zoph zoph/rm_images select yes', ])