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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-11-14 12:01:19 -08:00 committed by James Valleroy
parent c27000c6d6
commit 32d7ce9b38
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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)