Skip to content

Commit

Permalink
Logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vooperino authored Jun 17, 2024
1 parent 9c891e1 commit 5a87f63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core_files/scripts/letsencrypt/createLetsEncryptCert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core_files/scripts/letsencrypt/renewAllCert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a87f63

Please sign in to comment.