]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix issue for apache
authorneil <git@byneil.com>
Mon, 11 Jan 2016 13:50:03 +0000 (21:50 +0800)
committerneil <git@byneil.com>
Mon, 11 Jan 2016 13:50:03 +0000 (21:50 +0800)
le.sh

diff --git a/le.sh b/le.sh
index 0a69b3c17a3b6ec7b77b365d78abe1cf574ee002..c18990e138224cda6a5f7390a42ebbea3919c747 100755 (executable)
--- a/le.sh
+++ b/le.sh
@@ -296,6 +296,9 @@ _apachePath() {
 }
 
 _restoreApache() {
+  if [ -z "$usingApache" ] ; then
+    return 0
+  fi
   _initpath
   if ! _apachePath ; then
     return 1
@@ -353,7 +356,7 @@ Require all granted
     _restoreApache
     return 1;
   fi
-  
+  usingApache="1"
   return 0
 }
 
@@ -440,6 +443,8 @@ issue() {
       return 1
     fi
     wellknown_path="$ACME_DIR"
+  else
+    usingApache=""
   fi
 
   createAccountKey $Le_Domain $Le_Keylength