mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 10:21:45 +00:00
fix nginx mode
This commit is contained in:
parent
6fb2a1ed39
commit
5378d9ca26
4
acme.sh
4
acme.sh
@ -2462,7 +2462,7 @@ _setNginx() {
|
|||||||
fi
|
fi
|
||||||
_debug "Start detect nginx conf for $_d from:$_start_f"
|
_debug "Start detect nginx conf for $_d from:$_start_f"
|
||||||
if ! _checkConf "$_d" "$_start_f"; then
|
if ! _checkConf "$_d" "$_start_f"; then
|
||||||
"Can not find conf file for domain $d"
|
_err "Can not find conf file for domain $d"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_info "Found conf file: $FOUND_REAL_NGINX_CONF"
|
_info "Found conf file: $FOUND_REAL_NGINX_CONF"
|
||||||
@ -2559,7 +2559,7 @@ _checkConf() {
|
|||||||
FOUND_REAL_NGINX_CONF="$2"
|
FOUND_REAL_NGINX_CONF="$2"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if grep "^ *include *.*;" "$2" >/dev/null; then
|
if cat "$2" | tr "\t" " " | grep "^ *include *.*;" >/dev/null; then
|
||||||
_debug "Try include files"
|
_debug "Try include files"
|
||||||
for included in $(grep "^ *include *.*;" "$2" | sed "s/include //" | tr -d " ;"); do
|
for included in $(grep "^ *include *.*;" "$2" | sed "s/include //" | tr -d " ;"); do
|
||||||
_debug "check included $included"
|
_debug "check included $included"
|
||||||
|
Loading…
Reference in New Issue
Block a user