From 04cc00076fb4c74feef47f45c60ed7808c8f6296 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 28 Dec 2025 20:29:43 +0000 Subject: Explicitly set path in lego command lego will by default use the current directory to look for accounts/keys. That makes sense if you want to keep deployments separated, but in my case, I have a single deployment and want to be able to run the command from anywhere. --- renew-all | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renew-all b/renew-all index 7be893e..bc6ac34 100755 --- a/renew-all +++ b/renew-all @@ -5,6 +5,7 @@ import argparse import logging +import os import subprocess import tomllib @@ -44,6 +45,8 @@ def main() -> None: command = ( [ "lego", + "--path", + os.path.expanduser("~/.lego"), "--accept-tos", "--email", config["acme_email"], -- cgit v1.2.3