From 6ed1c718b92bddcf729f842aa0f0b79c6c1ee391 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 16 Apr 2016 20:06:26 +0800 Subject: [PATCH] minor, install without dnsapi --- acme.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index ba516bc3..1fcee01d 100755 --- a/acme.sh +++ b/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