Skip to content

Commit

Permalink
Fix letsencrypt case when RENEWED_DOMAINS is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jun 10, 2021
1 parent 0d1bc03 commit b7c3d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/letsencrypt/mosquitto-copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# executable after editing it to your needs.

# Set which domain this script will be run for
MY_DOMAIN="example.com"
MY_DOMAIN=example.com
# Set the directory that the certificates will be copied to.
CERTIFICATE_DIR=/etc/mosquitto/certs

if [ ${RENEWED_DOMAINS} = ${MY_DOMAIN} ]; then
if [ "${RENEWED_DOMAINS}" = "${MY_DOMAIN}" ]; then
# Copy new certificate to Mosquitto directory
cp ${RENEWED_LINEAGE}/fullchain.pem ${CERTIFICATE_DIR}/server.pem
cp ${RENEWED_LINEAGE}/privkey.pem ${CERTIFICATE_DIR}/server.key
Expand Down

0 comments on commit b7c3d52

Please sign in to comment.