radicale: Don't enable app when setup is rerun

Tests:

- Rerun setup after disabling the app. App is not enabled.

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-07-26 18:29:31 -07:00 committed by James Valleroy
parent 100592c1d4
commit 8d723daec3
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -104,7 +104,8 @@ class RadicaleApp(app_module.App):
def setup(self, old_version):
"""Install and configure the app."""
super().setup(old_version)
self.enable()
if not old_version:
self.enable()
def force_upgrade(self, packages):
"""Force upgrade radicale to resolve conffile prompt."""