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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2025-04-08 13:50:49 -07:00 committed by James Valleroy
parent 6cdab95049
commit f7d289bcd6
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class ZophApp(app_module.App):
app_id = 'zoph'
_version = 2
_version = 3
configure_when_disabled = False

View File

@ -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',
])