]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix nginx mode issue for multiple entries
authorneilpang <github@byneil.com>
Mon, 5 Jun 2017 14:29:21 +0000 (22:29 +0800)
committerneilpang <github@byneil.com>
Mon, 5 Jun 2017 14:29:21 +0000 (22:29 +0800)
acme.sh

diff --git a/acme.sh b/acme.sh
index 437706d34633cfefb929d74892cdc37859eb0263..efe68c183e0effe0e538085d920940a729d506ba 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -2668,10 +2668,11 @@ _isRealNginxConf() {
         if [ "$(echo "$_seg_n" | _egrep_o "^ *ssl  *on *;")" ] \
           || [ "$(echo "$_seg_n" | _egrep_o "listen .* ssl[ |;]")" ]; then
           _debug "ssl on, skip"
-          return 1
-        fi
-        FOUND_REAL_NGINX_CONF_LN=$_fln
-        return 0
+        else
+          FOUND_REAL_NGINX_CONF_LN=$_fln
+          _debug3 "found FOUND_REAL_NGINX_CONF_LN" "$FOUND_REAL_NGINX_CONF_LN"
+          return 0
+        fi        
       fi
     done
   fi