mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 23:11:44 +00:00
fix nginx mode
This commit is contained in:
parent
89abad7980
commit
2b5e2d4760
6
acme.sh
6
acme.sh
@ -3161,14 +3161,14 @@ _checkConf() {
|
|||||||
FOUND_REAL_NGINX_CONF="$2"
|
FOUND_REAL_NGINX_CONF="$2"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if cat "$2" | tr "\t" " " | grep "^ *include *.*;" >/dev/null; then
|
if cat "$2" | tr "\t" " " | grep "^ *include *;" >/dev/null; then
|
||||||
_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
|
if ! _startswith "$included" "/" && _exists dirname; then
|
||||||
_relpath="$(dirname "$_c_file")"
|
_relpath="$(dirname "$_c_file")"
|
||||||
_debug "_relpath" "$_relpath"
|
_debug "_relpath" "$_relpath"
|
||||||
included="$_relpath/included"
|
included="$_relpath/$included"
|
||||||
fi
|
fi
|
||||||
if _checkConf "$1" "$included"; then
|
if _checkConf "$1" "$included"; then
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user