summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-01-26 19:25:37 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-01-26 19:25:37 -0500
commit1793233157b08f5e1f760f4c72b4ba25b9f15bd6 (patch)
treed8784d13faac73bf382bc44d587f41ddaccd0510
parentbf982255aa4b88d61e4722e73bdbd5ccd33cb4c0 (diff)
fix
-rw-r--r--emailwiz.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 77c1765..fac8671 100644
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -65,11 +65,7 @@ done
apt install -y python3-certbot
certbot -d "$maildomain" certonly --standalone --register-unsafely-without-email --agree-tos
;;
-esac
-
-[ ! -d "$certdir" ] && echo "Note! You must first have a Let's Encrypt Certbot HTTPS/SSL Certificate for $maildomain.
-
-Use Let's Encrypt's Certbot to get that and then rerun this script. It failed to run automatically here." && exit 1
+esac || exit $1
echo "Configuring Postfix's main.cf..."