aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-04 21:49:30 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-04 21:49:30 +0100
commit64a0e897cba6a5da22ba149f446d457f183c75dd (patch)
tree00c5d8403280812072eee3d3b33cbb7fb35457e0
parentcf4e17a15781dc5d34a03fe5a40bf43616823010 (diff)
downloadlfacme-1d65e2b5b51526d8139aa9f97e93802a22a0a907.tar.gz
lfacme-1d65e2b5b51526d8139aa9f97e93802a22a0a907.tar.bz2
simplify $LFACME_VERBOSE handlingv1.0
-rw-r--r--lfacme.sh.in2
-rw-r--r--renew.sh.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/lfacme.sh.in b/lfacme.sh.in
index fc29e3d..27a6cf1 100644
--- a/lfacme.sh.in
+++ b/lfacme.sh.in
@@ -17,6 +17,8 @@ while :; do
shift; shift;;
-v)
LFACME_VERBOSE=1
+ # Export this so it's available to hooks.
+ export LFACME_VERBOSE
shift;;
-y)
_uacme_flags="$_uacme_flags $1"
diff --git a/renew.sh.in b/renew.sh.in
index de46bb0..357538c 100644
--- a/renew.sh.in
+++ b/renew.sh.in
@@ -226,8 +226,7 @@ _docert() {
# so run the hooks.
for hook in $_rhooks; do
_verbose "running hook: %s" "$hook"
- env "LFACME_VERBOSE=${LFACME_VERBOSE}" \
- "LFACME_CERT=${identifier}" \
+ env "LFACME_CERT=${identifier}" \
"LFACME_KEYFILE=${keyfile}" \
"LFACME_CERTFILE=${certfile}" \
"$hook" newcert