From 4f07e92d3e8e726ab9b4b3a919e796284fe821a3 Mon Sep 17 00:00:00 2001 From: MGislv Date: Sun, 20 Mar 2022 15:10:05 +0000 Subject: [PATCH] Update 'emailwiz.sh' --- emailwiz.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emailwiz.sh b/emailwiz.sh index 03f7f59..202e4d7 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -29,14 +29,14 @@ # Clear out /etc/postfix and /etc/dovecot yourself if needbe. echo 'Installing programs...' -pacman -Syu --needed postfix dovecot opendkim spamassassin pigeonhole +pacman -Syu --needed postfix dovecot opendkim spamassassin pigeonhole certbot # Put your domain.tld here (not your subdomain) domain='domain.tld' subdom=${MAIL_SUBDOM:-mail} maildomain="$subdom.$domain" certdir="/etc/letsencrypt/live/$maildomain" -[ ! -d "$certdir" ] && certdir="$(dirname "$(certbot certificates 2>/dev/null | grep "$maildomain\|*.$domain" -A 2 | awk '/Certificate Path/ {print $3}' | head -n1)")" +[ ! -d "$certdir" ] && certdir="$(dirname "$(certbot certificates 2>/dev/null | grep -A 2 "$maildomain\|*.$domain" | awk '/Certificate Path/ {print $3}' | head -n1)")" [ ! -d "$certdir" ] && echo "Note! You must first have a Let's Encrypt Certbot HTTPS/SSL Certificate for $maildomain.