diff --git a/core_files/scripts/letsencrypt/createLetsEncryptCert.sh b/core_files/scripts/letsencrypt/createLetsEncryptCert.sh index e8190fe..f390531 100644 --- a/core_files/scripts/letsencrypt/createLetsEncryptCert.sh +++ b/core_files/scripts/letsencrypt/createLetsEncryptCert.sh @@ -17,7 +17,7 @@ if ! checkDir $sslDirPath; then fi WEBROOT_OPTS="--webroot --webroot-path $certStuffRoot" -if [ -d "/cloudflare-account.ini" ]; then +if [ -f "/cloudflare-account.ini" ]; then echo "Using CloudFlare API for DNS" WEBROOT_OPTS="--dns-cloudflare --dns-cloudflare-credentials /cloudflare-account.ini" fi diff --git a/core_files/scripts/letsencrypt/renewAllCert.sh b/core_files/scripts/letsencrypt/renewAllCert.sh index 73f932f..384df00 100644 --- a/core_files/scripts/letsencrypt/renewAllCert.sh +++ b/core_files/scripts/letsencrypt/renewAllCert.sh @@ -27,7 +27,7 @@ if ! checkFile $logFile; then fi WEBROOT_OPTS="--webroot --webroot-path $certStuffRoot" -if [ -d "/cloudflare-account.ini" ]; then +if [ -f "/cloudflare-account.ini" ]; then echo "Using CloudFlare API for DNS" WEBROOT_OPTS="--dns-cloudflare --dns-cloudflare-credentials /cloudflare-account.ini" fi