Call deploy_hook during certonly and run

This commit is contained in:
Brad Warren 2017-06-30 10:33:49 -04:00
parent 1b65ba88d8
commit 8a664622ea

View file

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