ejabberd: 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:26:51 -07:00 committed by James Valleroy
parent 02192266c2
commit 69c4aca429
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -146,6 +146,7 @@ class EjabberdApp(app_module.App):
self.get_component('letsencrypt-ejabberd').setup_certificates( self.get_component('letsencrypt-ejabberd').setup_certificates(
[domainname]) [domainname])
privileged.setup(domainname) privileged.setup(domainname)
if not old_version:
self.enable() self.enable()
# Configure STUN/TURN only if there's a valid TLS domain set for Coturn # Configure STUN/TURN only if there's a valid TLS domain set for Coturn