Safer script syntax

This commit is contained in:
Antoine Nguyen
2024-04-26 15:04:15 +02:00
parent c0bdc22c4c
commit 015a535d0f

View File

@@ -151,7 +151,7 @@ class LetsEncryptCertificate(CertificateBackend):
HOSTNAME=$(basename $RENEWED_LINEAGE)
if [ $HOSTNAME = '{self.hostname}' ]
if [ "$HOSTNAME" = "{self.hostname}" ]
then
systemctl reload dovecot
systemctl reload postfix