mirror of
https://github.com/certbot/certbot.git
synced 2026-04-25 16:18:06 -04:00
Call deploy_hook during certonly and run
This commit is contained in:
parent
1b65ba88d8
commit
8a664622ea
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue