diff options
| author | Matthew Fennell <matthew@fennell.dev> | 2025-12-28 20:29:43 +0000 |
|---|---|---|
| committer | Matthew Fennell <matthew@fennell.dev> | 2025-12-29 01:49:30 +0000 |
| commit | 04cc00076fb4c74feef47f45c60ed7808c8f6296 (patch) | |
| tree | 2d10351eead9a90bff90e492e04d136222184ccb /renew-all | |
| parent | 640c940f23b9a43c84250ff834d54394a074a16f (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.
Diffstat (limited to 'renew-all')
| -rwxr-xr-x | renew-all | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"], |
