From 32d7ce9b387e9412c5f5a73746743d3303db7966 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 12:01:19 -0800 Subject: [PATCH] letencrypt: Split app initialization Tests: - On startup, LE tries to obtain certs during post app initialization. - When domain is added, LE tried to obtain certificates. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/letsencrypt/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/letsencrypt/__init__.py b/plinth/modules/letsencrypt/__init__.py index 2b603c5a0..2763a5a51 100644 --- a/plinth/modules/letsencrypt/__init__.py +++ b/plinth/modules/letsencrypt/__init__.py @@ -83,6 +83,9 @@ class LetsEncryptApp(app_module.App): **manifest.backup) self.add(backup_restore) + @staticmethod + def post_init(): + """Perform post initialization operations.""" domain_added.connect(on_domain_added) domain_removed.connect(on_domain_removed)