From c8fb291bd9d6dea1609eaefca3f2e1899f138727 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 4 Jun 2025 09:02:55 +0100 Subject: init.sh: fix _findhook --- init.sh | 5 +++-- 1 file 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" -- cgit v1.2.3