From a6a5f96bcfd6a2598bcee6e250ebf0ffd650c5ef Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 28 Dec 2025 18:09:06 +0000 Subject: Get acme_email and desec_token from config section When I still had a domain for motoristic, I had separate emails and tokens for it, the idea being that I could hand it over to someone else more easily. However, I deleted the motoristic server some time ago, and since then, all servers have used the same email and token. Therefore, retrieve this info from the common config section instead of the domain-specific section. --- renew-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'renew-all') diff --git a/renew-all b/renew-all index f29438a..045e82f 100755 --- a/renew-all +++ b/renew-all @@ -27,7 +27,7 @@ def main() -> None: "lego", "--accept-tos", "--email", - domain["acme_email"], + config["acme_email"], "--dns", "desec", "--server", @@ -39,7 +39,7 @@ def main() -> None: ) environment = { "DESEC_POLLING_INTERVAL": str(config["timeout_seconds"]), - "DESEC_TOKEN": domain["desec_token"], + "DESEC_TOKEN": config["desec_token"], } logging.info(f"Running command {command}") subprocess.run(command, env=environment) -- cgit v1.2.3