Browse Source

minor, install without dnsapi

neil 9 years ago
parent
commit
6ed1c718b9
1 changed files with 4 additions and 2 deletions
  1. 4 2
      acme.sh

+ 4 - 2
acme.sh

@@ -1825,8 +1825,10 @@ install() {
     _info "No profile is found, you will need to go into $LE_WORKING_DIR to use $PROJECT_NAME"
   fi
 
-  mkdir -p $LE_WORKING_DIR/dnsapi
-  cp  dnsapi/* $LE_WORKING_DIR/dnsapi/
+  if [[ -d "dnsapi" ]] ; then
+    mkdir -p $LE_WORKING_DIR/dnsapi
+    cp  dnsapi/* $LE_WORKING_DIR/dnsapi/
+  fi
   
   #to keep compatible mv the .acc file to .key file 
   if [[ -f "$LE_WORKING_DIR/account.acc" ]] ; then