Replace bash specific equality check with POSIX check.

Closes #2056. Thanks to Greg Troxel.
This commit is contained in:
Roger A. Light 2021-02-03 09:52:52 +00:00
parent 217b416a2d
commit f7dcd83572

View File

@ -12,7 +12,7 @@
# Place this script in /etc/letsencrypt/renewal-hooks/deploy/ and make it
# executable after editing it to your needs.
if [ ${RENEWED_DOMAINS} == "my-mosquitto-domain" ]; then
if [ ${RENEWED_DOMAINS} = "my-mosquitto-domain" ]; then
# Copy new certificate to Mosquitto directory
cp ${RENEWED_LINEAGE}/fullchain.pem /etc/mosquitto/certs/server.pem
cp ${RENEWED_LINEAGE}/privkey.pem /etc/mosquitto/certs/server.key