]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix nginx mode
authorneilpang <github@neilpang.com>
Sun, 1 Aug 2021 07:44:14 +0000 (15:44 +0800)
committerneilpang <github@neilpang.com>
Sun, 1 Aug 2021 07:44:14 +0000 (15:44 +0800)
acme.sh

diff --git a/acme.sh b/acme.sh
index 0028164a3a7d8fc03b556a2eafc3653245fe187f..c0986c728daae8bc4c81946280047d01e6abd9a8 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -3161,14 +3161,14 @@ _checkConf() {
       FOUND_REAL_NGINX_CONF="$2"
       return 0
     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"
-      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"
         if ! _startswith "$included" "/" && _exists dirname; then
           _relpath="$(dirname "$_c_file")"
           _debug "_relpath" "$_relpath"
-          included="$_relpath/included"
+          included="$_relpath/$included"
         fi
         if _checkConf "$1" "$included"; then
           return 0