mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-03 19:45:04 +08:00
fix nginx relative path issue:
https://github.com/acmesh-official/acme.sh/issues/1743 https://github.com/acmesh-official/acme.sh/issues/1914
This commit is contained in:
5
acme.sh
5
acme.sh
@@ -3098,6 +3098,11 @@ _checkConf() {
|
||||
_debug "Try include files"
|
||||
for included in $(cat "$2" | tr "\t" " " | grep "^ *include *.*;" | sed "s/include //" | tr -d " ;"); do
|
||||
_debug "check included $included"
|
||||
if !_startswith "$included" "/" && _exists dirname; then
|
||||
_relpath="$(dirname "$_c_file")"
|
||||
_debug "_relpath" "$_relpath"
|
||||
included="$_relpath/included"
|
||||
fi
|
||||
if _checkConf "$1" "$included"; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user