mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 02:11:45 +00: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:
parent
e0c32ce700
commit
0a4ef17135
5
acme.sh
5
acme.sh
@ -3098,6 +3098,11 @@ _checkConf() {
|
|||||||
_debug "Try include files"
|
_debug "Try include files"
|
||||||
for included in $(cat "$2" | tr "\t" " " | grep "^ *include *.*;" | sed "s/include //" | tr -d " ;"); do
|
for included in $(cat "$2" | tr "\t" " " | grep "^ *include *.*;" | sed "s/include //" | tr -d " ;"); do
|
||||||
_debug "check included $included"
|
_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
|
if _checkConf "$1" "$included"; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user