diff --git a/haraka.sh b/haraka.sh index 5d7fc15..88a2c66 100644 --- a/haraka.sh +++ b/haraka.sh @@ -9,7 +9,7 @@ fi echo $HOSTNAME > /haraka/config/me # Get and install certificates from Let's Encrypt -if [ ! -f /haraka/config/tls ]; then +if [ ! -d /haraka/config/tls ]; then certbot certonly -n --agree-tos --email "$EMAIL" -d "$HOSTNAME" --standalone --preferred-challenges http mkdir -p /haraka/config/tls cd /haraka/config/tls