Skip to content

Commit

Permalink
Merge pull request #3 from 2sheds/multihost
Browse files Browse the repository at this point in the history
Use first of multi-host domains for certificate names
  • Loading branch information
ebarault authored Mar 29, 2019
2 parents 12646ec + 8915bde commit 9ef90f7
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 9ef90f7

Please sign in to comment.