Skip to content

Commit

Permalink
fix: make sure we don't add -d options for blank domains
Browse files Browse the repository at this point in the history
  • Loading branch information
ebarault committed Mar 6, 2019
1 parent ad7179d commit 0a95d07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/run_certbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ processCertificates() {
# look for certificate additional domain names and append them as '-d <name>' (-d for certbot's --domains option)
for altname in ${subjectaltnames}; do
if [ "${altname}" != "${subject}" ]; then
domains="${domains} -d ${altname}"
if [ "${domains}" != "" ]; then
domains="${domains} -d ${altname}"
else
domains="${altname}"
fi
fi
done

Expand Down

0 comments on commit 0a95d07

Please sign in to comment.