mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
nginx
This commit is contained in:
parent
0c63090a23
commit
012dd6986b
4
acme.sh
4
acme.sh
@ -2763,9 +2763,9 @@ _isRealNginxConf() {
|
|||||||
|
|
||||||
_left="$(sed -n "${_start_nn},99999p" "$2")"
|
_left="$(sed -n "${_start_nn},99999p" "$2")"
|
||||||
_debug2 _left "$_left"
|
_debug2 _left "$_left"
|
||||||
if echo "$_left" | tr "\t" ' ' | grep -n "^ *server *" >/dev/null; then
|
_end="$(echo "$_left" | tr "\t" ' ' | grep -n "^ *server *" | grep -v server_name | _head_n 1)"
|
||||||
_end=$(echo "$_left" | tr "\t" ' ' | grep -n "^ *server *" | _head_n 1)
|
|
||||||
_debug "_end" "$_end"
|
_debug "_end" "$_end"
|
||||||
|
if [ "$_end" ]; then
|
||||||
_end_n=$(echo "$_end" | cut -d : -f 1)
|
_end_n=$(echo "$_end" | cut -d : -f 1)
|
||||||
_debug "_end_n" "$_end_n"
|
_debug "_end_n" "$_end_n"
|
||||||
_seg_n=$(echo "$_left" | sed -n "1,${_end_n}p")
|
_seg_n=$(echo "$_left" | sed -n "1,${_end_n}p")
|
||||||
|
Loading…
Reference in New Issue
Block a user