always show which ssh-commands execute

This commit is contained in:
holger krekel
2023-12-11 01:43:09 +01:00
parent 5734e00625
commit 528cd3da25
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
[Unit]
Description=Dict authentication proxy for dovecot
Description=Chatmail dict authentication proxy for dovecot
[Service]
ExecStart={execpath} /run/dovecot/doveauth.socket vmail /home/vmail/passdb.sqlite

View File

@@ -68,6 +68,7 @@ def dns_cmd(args, out):
ssh = f"ssh root@{args.config.mailname}"
def shell_output(arg):
out(f"[{arg}]", file=sys.stderr)
return subprocess.check_output(arg, shell=True).decode()
def read_dkim_entries(entry):
@@ -79,7 +80,6 @@ def dns_cmd(args, out):
lines.append(line)
return "\n".join(lines)
out(f"[retrieving info by invoking {ssh}]", file=sys.stderr)
acme_account_url = shell_output(f"{ssh} -- acmetool account-url")
dkim_entry = read_dkim_entries(shell_output(f"{ssh} -- opendkim-genzone -F"))