Skip to content

Commit

Permalink
Fix for multi-host domains always being re-issued
Browse files Browse the repository at this point in the history
  • Loading branch information
2sheds committed Mar 27, 2019
1 parent 12646ec commit 8915bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_certbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ issueCertificate() {
}

copyCertificate() {
local d=${CERT_DOMAIN} # shorthand
local d=${CERT_DOMAIN%%,*} # in case of multi-host domains, use first name only

# certs are copied to /certs directory
if [ "$CONCAT" = true ]; then
Expand All @@ -57,7 +57,7 @@ processCertificates() {
# - CONCAT
# - CERTBOT_ARGS

local d=${CERT_DOMAIN} # shorthand
local d=${CERT_DOMAIN%%,*} # in case of multi-host domains, use first name only

if [ -d /etc/letsencrypt/live/$d ]; then
cert_path=$(find /etc/letsencrypt/live/$d -name cert.pem -print0)
Expand Down

0 comments on commit 8915bde

Please sign in to comment.