aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-06-04 09:02:55 +0100
committerLexi Winter <ivy@FreeBSD.org>2025-06-04 09:02:55 +0100
commitc8fb291bd9d6dea1609eaefca3f2e1899f138727 (patch)
treea2af21b506ea50fdc72683b44f86fc660c682ffd
parent32e91c13a7eaeb42cd1250de5e60bd400c60e4be (diff)
downloadlfacme-c8fb291bd9d6dea1609eaefca3f2e1899f138727.tar.gz
lfacme-c8fb291bd9d6dea1609eaefca3f2e1899f138727.tar.bz2
init.sh: fix _findhook
-rw-r--r--init.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.sh b/init.sh
index e6bdd57..a1353a4 100644
--- a/init.sh
+++ b/init.sh
@@ -73,7 +73,7 @@ if [ -z "$ACME_KERBEROS_PRINCIPAL" ]; then
fi
if [ -z "$ACME_HOOKDIR" ]; then
- ACME_HOOKDIR="${ACME_CONFDIR}/hooks"
+ ACME_HOOKDIR="${_CONFDIR}/hooks"
fi
# The domains.conf file.
@@ -129,7 +129,8 @@ _findchallenge() {
# Find a hook script and make sure it's valid. If the hook name begins with a
# '/' it's a full path, otherwise it's relative to ACME_HOOKDIR.
_findhook() {
- hook="$1"
+ local identifier="$1"
+ local hook="$2"
if [ "${hook#/*}" = "$hook" ]; then
hook="${ACME_HOOKDIR}/$hook"