diff --git a/certbot/certbot/_internal/cli/__init__.py b/certbot/certbot/_internal/cli/__init__.py index dcd254e4e..36ee88ab7 100644 --- a/certbot/certbot/_internal/cli/__init__.py +++ b/certbot/certbot/_internal/cli/__init__.py @@ -170,8 +170,9 @@ def prepare_and_parse_args(plugins: plugins_disco.PluginsRegistry, args: List[st " deploy hooks. This includes hooks set on the command line, saved in the" " certificate's renewal configuration file, or present in the renewal-hooks directory." " To exclude direcory hooks, use --no-directory-hooks. The hook(s) will only" - " be run if the dry run succeeds. This flag is recommended when modifying the deploy" - " hook using `reconfigure`.") + " be run if the dry run succeeds, and will use the current active certificate, not" + " the temporary test certificate acquired during the dry run. This flag is recommended" + " when modifying the deploy hook using `reconfigure`.") helpful.add( ["register", "automation"], "--register-unsafely-without-email", action="store_true", default=flag_default("register_unsafely_without_email"), diff --git a/certbot/certbot/_internal/main.py b/certbot/certbot/_internal/main.py index 58337f9df..92cd16fba 100644 --- a/certbot/certbot/_internal/main.py +++ b/certbot/certbot/_internal/main.py @@ -1736,9 +1736,11 @@ def reconfigure(config: configuration.NamespaceConfig, # figure this out before we modify config if config.deploy_hook and not config.run_deploy_hook: - msg = ("You are attempting to set a new --deploy-hook. Would you like Certbot to run the new " - "hook when it performs a dry run with the new settings? This will run all relevant " - "deploy hooks, including directory hooks, unless --no-directory-hooks is set.") + msg = ("You are attempting to set a new --deploy-hook. Would you like Certbot to run the " + "new hook when it performs a dry run with the new settings? This will run all " + "relevant deploy hooks, including directory hooks, unless --no-directory-hooks " + "is set. This will use the current active certificate, and not the temporary test " + "certificate acquired during the dry run.") config.run_deploy_hook = display_util.yesno(msg,"Run deploy hook", "Do not run deploy hook", default=False)