mirror of
https://github.com/certbot/certbot.git
synced 2026-07-26 16:19:36 +02:00
Call deploy_hook during certonly and run
This commit is contained in:
@@ -82,6 +82,8 @@ def _get_and_save_cert(le_client, config, domains=None, certname=None, lineage=N
|
||||
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
|
||||
if lineage is False:
|
||||
raise errors.Error("Certificate could not be obtained")
|
||||
elif lineage is not None:
|
||||
hooks.deploy_hook(config, lineage.names(), lineage.live_dir)
|
||||
finally:
|
||||
hooks.post_hook(config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user