if i use --pre-hook, and certbot determines that certs need to be renewed, will the env variables:
$RENEWED_LINEAGE
or
$RENEWED_DOMAINS
be defined prior to the actual renewal or only after? Thanks.
if i use --pre-hook, and certbot determines that certs need to be renewed, will the env variables:
$RENEWED_LINEAGE
or
$RENEWED_DOMAINS
be defined prior to the actual renewal or only after? Thanks.
As far as I know, those env vars are only available for --renew-hook
, which is run after a successful renewal.
@Osiris is correct
From certbot client more information and description
–renew-hook RENEW_HOOK
Command to be run in a shell once for each
successfully renewed certificate. For this command,
the shell variable $RENEWED_LINEAGE will point to the
config live subdirectory (for example,
“/etc/letsencrypt/live/example.com”) containing the
new certs and keys; the shell variable
$RENEWED_DOMAINS will contain a space-delimited list
of renewed cert domains (for example,
“example.com www.example.com”) (default: None)
Andrei
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.