Skip to content

Commit

Permalink
fix: use correct path for checking cert sha1sum
Browse files Browse the repository at this point in the history
Refs #224
  • Loading branch information
josegonzalez authored Apr 11, 2021
1 parent 9b935e1 commit 161af8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ letsencrypt_is_active() {

local le_sha1="not_found"
if [[ -f "$DOKKU_ROOT/$app/letsencrypt/certs/current/certificates/$domain.pem" ]]; then
le_sha1=$( (cat "$DOKKU_ROOT/$app/letsencrypt/certs/current/certificates/$domain.pem" 2>/dev/null) | sha1sum || echo "not_found")
le_sha1=$( (cat "$DOKKU_ROOT/$app/letsencrypt/certs/current/certificates/$domain.crt" 2>/dev/null) | sha1sum || echo "not_found")
elif [[ -f "$DOKKU_ROOT/$app/letsencrypt/certs/current/fullchain.pem" ]]; then
le_sha1=$( (cat "$DOKKU_ROOT/$app/letsencrypt/certs/current/fullchain.pem" 2>/dev/null) | sha1sum || echo "not_found")
fi
Expand Down

0 comments on commit 161af8a

Please sign in to comment.