summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-12-28 20:29:43 +0000
committerMatthew Fennell <matthew@fennell.dev>2025-12-29 01:49:30 +0000
commit04cc00076fb4c74feef47f45c60ed7808c8f6296 (patch)
tree2d10351eead9a90bff90e492e04d136222184ccb
parent640c940f23b9a43c84250ff834d54394a074a16f (diff)
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.
-rwxr-xr-xrenew-all3
1 files changed, 3 insertions, 0 deletions
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"],