coturn: Prevent package removal when roundcube is uninstalled

Closes: #2328.

Coturn depends on sqlite3 package. As sqlite3 is listed as a package in
roundcube, it is removed when roundcube is uninstalled. This results in the
removal of coturn as well. Prevent this by listing sqlite3 package explicitly in
coturn app.

Tests:

- Without the patch, install coturn and roundcube. When roundcube is
uninstalled, coturn package is no longer installed.

- Apply the patch, install coturn and roundcube. When roundcube is uninstalled,
coturn and sqlite3 packages are still installed.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-04-04 10:08:01 +05:30 committed by James Valleroy
parent 8c1f73f54c
commit 96318e5f94
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -59,7 +59,9 @@ class CoturnApp(app_module.App):
parent_url_name='apps')
self.add(menu_item)
packages = Packages('packages-coturn', ['coturn'])
# Include sqlite3 to prevent removal of coturn from removal of
# roundcube.
packages = Packages('packages-coturn', ['coturn', 'sqlite3'])
self.add(packages)
firewall = Firewall('firewall-coturn', info.name,