Skip to content
Snippets Groups Projects
Unverified Commit bc4943e3 authored by Max Adamo's avatar Max Adamo
Browse files

improve command construction in coyote script

parent 7832c441
Branches
No related tags found
No related merge requests found
...@@ -89,11 +89,12 @@ def run_cbot(start, cbot_dom, prov, action, reuse_key, force, dry, w_card=None, ...@@ -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))}" domain_list = f"-d {' -d '.join(list(cbot_dom))}"
extra_cmd = f" {' '.join(extra_cmds)}" if extra_cmds else "" extra_cmd = f" {' '.join(extra_cmds)}" if extra_cmds else ""
cbot_cmd = ( _cbot_cmd = (
f"/usr/local/bin/certbot {action} --non-interactive" f"/usr/local/bin/certbot {action} --non-interactive"
+ f" -c /etc/{prov}/cli.ini --cert-name {cbot_dom[0]}" + f" -c /etc/{prov}/cli.ini --cert-name {cbot_dom[0]}"
+ f" {domain_list} {dry} {force} {reuse_key} {extra_cmd}" + f" {domain_list} {dry} {force} {reuse_key} {extra_cmd}"
) )
cbot_cmd = ' '.join(_cbot_cmd.split())
log.handler(f"executing: {cbot_cmd}", LOG_FILE) log.handler(f"executing: {cbot_cmd}", LOG_FILE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment