mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +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)
|
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
|
||||||
if lineage is False:
|
if lineage is False:
|
||||||
raise errors.Error("Certificate could not be obtained")
|
raise errors.Error("Certificate could not be obtained")
|
||||||
|
elif lineage is not None:
|
||||||
|
hooks.deploy_hook(config, lineage.names(), lineage.live_dir)
|
||||||
finally:
|
finally:
|
||||||
hooks.post_hook(config)
|
hooks.post_hook(config)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user