From bc4943e302fff0a7647e8d132ed723b432f28b0e Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <maxadamo@gmail.com> Date: Mon, 17 Feb 2025 20:33:22 +0100 Subject: [PATCH] improve command construction in coyote script --- wile_coyote/bin/coyote | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wile_coyote/bin/coyote b/wile_coyote/bin/coyote index 500b4b8..75774e9 100755 --- a/wile_coyote/bin/coyote +++ b/wile_coyote/bin/coyote @@ -89,11 +89,12 @@ def run_cbot(start, cbot_dom, prov, action, reuse_key, force, dry, w_card=None, domain_list = f"-d {' -d '.join(list(cbot_dom))}" extra_cmd = f" {' '.join(extra_cmds)}" if extra_cmds else "" - cbot_cmd = ( + _cbot_cmd = ( f"/usr/local/bin/certbot {action} --non-interactive" + f" -c /etc/{prov}/cli.ini --cert-name {cbot_dom[0]}" + f" {domain_list} {dry} {force} {reuse_key} {extra_cmd}" ) + cbot_cmd = ' '.join(_cbot_cmd.split()) log.handler(f"executing: {cbot_cmd}", LOG_FILE) -- GitLab