acme-acmesh: use $challenge_dir
authorGlen Huang <i@glenhuang.com>
Wed, 14 Dec 2022 13:16:57 +0000 (21:16 +0800)
committerGlen Huang <i@glenhuang.com>
Wed, 14 Dec 2022 13:16:57 +0000 (21:16 +0800)
Signed-off-by: Glen Huang <i@glenhuang.com>
net/acme-acmesh/files/hook.sh

index 4df82643d4b83865ed972ed822ef75858b5b8b67..149a3e751aec28d600cc3491b35da223d31e91fc 100644 (file)
@@ -3,7 +3,7 @@ set -u
 ACME=/usr/lib/acme/client/acme.sh
 LOG_TAG=acme-acmesh
 # webroot option deprecated, use the hardcoded value directly in the next major version
-WEBROOT=${webroot:-/var/run/acme/challenge}
+WEBROOT=${webroot:-$challenge_dir}
 NOTIFY=/usr/lib/acme/notify
 
 # shellcheck source=net/acme/files/functions.sh