소스 검색

ignore the installcert error for 'issue'

neil 9 년 전
부모
커밋
ca2a96b3f3
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      acme.sh

+ 5 - 2
acme.sh

@@ -1474,7 +1474,10 @@ issue() {
 
 
   installcert $Le_Domain  "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath"
-
+  if [ "$?" = "9" ] ; then
+    #ignore the empty install error.
+    return 0
+  fi
 }
 
 renew() {
@@ -1609,7 +1612,7 @@ installcert() {
 
   if [ "$_installed" = "0" ] ; then
     _err "Nothing to install. You don't specify any parameter."
-    return 1
+    return 9
   fi
 
 }