|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/usr/bin/env sh
|
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
|
|
|
|
VER=3.0.0
|
|
|
|
VER=3.0.1
|
|
|
|
|
|
|
|
|
|
|
|
PROJECT_NAME="acme.sh"
|
|
|
|
PROJECT_NAME="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
|
|
|
@ -4207,7 +4207,7 @@ issue() {
|
|
|
|
if [ -z "$_ACME_IS_RENEW" ]; then
|
|
|
|
if [ -z "$_ACME_IS_RENEW" ]; then
|
|
|
|
_initpath "$_main_domain" "$_key_length"
|
|
|
|
_initpath "$_main_domain" "$_key_length"
|
|
|
|
mkdir -p "$DOMAIN_PATH"
|
|
|
|
mkdir -p "$DOMAIN_PATH"
|
|
|
|
else
|
|
|
|
elif ! _hasfield "$_web_roots" "$W_DNS"; then
|
|
|
|
Le_OrderFinalize=""
|
|
|
|
Le_OrderFinalize=""
|
|
|
|
Le_LinkOrder=""
|
|
|
|
Le_LinkOrder=""
|
|
|
|
Le_LinkCert=""
|
|
|
|
Le_LinkCert=""
|
|
|
|