mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Log when we run renew hooks (why weren't we doing this already?)
This commit is contained in:
parent
876a760a91
commit
0bea6c7350
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ def _prog(shell_cmd):
|
|||
cmd = _which(shell_cmd)
|
||||
return os.path.basename(cmd) if cmd else None
|
||||
|
||||
|
||||
def validate_hook(shell_cmd, hook_name):
|
||||
"""Check that a command provided as a hook is plausibly executable.
|
||||
|
||||
|
|
@ -65,6 +66,7 @@ def renew_hook(config, domains, lineage_path):
|
|||
if not config.dry_run:
|
||||
os.environ["RENEWED_DOMAINS"] = " ".join(domains)
|
||||
os.environ["RENEWED_LINEAGE"] = lineage_path
|
||||
logger.info("Running renew-hook command: %s", config.renew_hook)
|
||||
_run_hook(config.renew_hook)
|
||||
else:
|
||||
logger.warning("Dry run: skipping renewal hook command: %s", config.renew_hook)
|
||||
|
|
|
|||
Loading…
Reference in a new issue