Browse Source

Merge branch 'master' of https://github.com/Neilpang/le

neil 9 years ago
parent
commit
615cb36029
1 changed files with 3 additions and 3 deletions
  1. 3 3
      le.sh

+ 3 - 3
le.sh

@@ -1363,13 +1363,13 @@ installcert() {
   fi
   
   if [ "$Le_RealCACertPath" ] ; then
-    if [ -f "$Le_RealCACertPath" ] ; then
-      cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
-    fi
     if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then
       echo "" >> "$Le_RealCACertPath"
       cat "$CA_CERT_PATH" >> "$Le_RealCACertPath"
     else
+      if [ -f "$Le_RealCACertPath" ] ; then
+        cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak
+      fi
       cat "$CA_CERT_PATH" > "$Le_RealCACertPath"
     fi
   fi