mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 15:52:45 +00:00
fixed regex for nginx conf path
Fixed the regex for nginx path configuration to fix grep: unrecognized option error
This commit is contained in:
parent
0da839cce3
commit
13d31ecb7f
2
acme.sh
2
acme.sh
@ -3130,7 +3130,7 @@ _setNginx() {
|
|||||||
_err "nginx command is not found."
|
_err "nginx command is not found."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
NGINX_CONF="$(nginx -V 2>&1 | _egrep_o "--conf-path=[^ ]* " | tr -d " ")"
|
NGINX_CONF="$(nginx -V 2>&1 | _egrep_o "\-\-conf-path=[^ ]* " | tr -d " ")"
|
||||||
_debug NGINX_CONF "$NGINX_CONF"
|
_debug NGINX_CONF "$NGINX_CONF"
|
||||||
NGINX_CONF="$(echo "$NGINX_CONF" | cut -d = -f 2)"
|
NGINX_CONF="$(echo "$NGINX_CONF" | cut -d = -f 2)"
|
||||||
_debug NGINX_CONF "$NGINX_CONF"
|
_debug NGINX_CONF "$NGINX_CONF"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user