letsencrypt: Trigger renewal certificate events in component

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Sunil Mohan Adapa authored and Joseph Nuthalapati committed 2019-07-16 15:12:44 +05:30
1 parent c54a75f85c
commit c33c44eea0
1 file changed
+4
+4
View File
@@ -76,3 +76,7 @@ class LetsEncrypt:
"""
logger.info('LE certificate renewed (deployed): %s, %s.',
renewed_domains, renewed_lineage)
from plinth.modules.letsencrypt import components
components.on_certificate_event('renewed', renewed_domains,
renewed_lineage)