mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
minor
This commit is contained in:
parent
6ba4f8b54c
commit
37f39c0870
13
acme.sh
13
acme.sh
@ -2548,10 +2548,7 @@ _setNginx() {
|
|||||||
_d="$1"
|
_d="$1"
|
||||||
_croot="$2"
|
_croot="$2"
|
||||||
_thumbpt="$3"
|
_thumbpt="$3"
|
||||||
if ! _exists "nginx"; then
|
|
||||||
_err "nginx command is not found."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
FOUND_REAL_NGINX_CONF=""
|
FOUND_REAL_NGINX_CONF=""
|
||||||
FOUND_REAL_NGINX_CONF_LN=""
|
FOUND_REAL_NGINX_CONF_LN=""
|
||||||
BACKUP_NGINX_CONF=""
|
BACKUP_NGINX_CONF=""
|
||||||
@ -2561,6 +2558,10 @@ _setNginx() {
|
|||||||
if [ -z "$_start_f" ]; then
|
if [ -z "$_start_f" ]; then
|
||||||
_debug "find start conf from nginx command"
|
_debug "find start conf from nginx command"
|
||||||
if [ -z "$NGINX_CONF" ]; then
|
if [ -z "$NGINX_CONF" ]; then
|
||||||
|
if ! _exists "nginx"; then
|
||||||
|
_err "nginx command is not found."
|
||||||
|
return 1
|
||||||
|
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)"
|
||||||
@ -2605,6 +2606,10 @@ _setNginx() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! _exists "nginx"; then
|
||||||
|
_err "nginx command is not found."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
_info "Check the nginx conf before setting up."
|
_info "Check the nginx conf before setting up."
|
||||||
if ! _exec "nginx -t" >/dev/null; then
|
if ! _exec "nginx -t" >/dev/null; then
|
||||||
_exec_err
|
_exec_err
|
||||||
|
Loading…
Reference in New Issue
Block a user