From 04c449e9bffa6c09ee43788da5b9e197c1976f02 Mon Sep 17 00:00:00 2001 From: UX0l0l Date: Sun, 23 Jun 2024 04:09:29 +0300 Subject: [PATCH] Removed unnecessary for loop --- emailwiz.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/emailwiz.sh b/emailwiz.sh index 5cb3a28..a7b959a 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -37,10 +37,7 @@ case "$v6choice" in esac # Open required mail ports, and 80, for Certbot. -for port in 80 993 465 25 587 110 995 -do - ufw allow "$port" 2>/dev/null -done +ufw allow 80, 993, 465, 25, 587, 110, 995/tcp 2>/dev/null [ ! -d "$certdir" ] && possiblecert="$(certbot certificates 2>/dev/null | grep "Domains:\.* \(\*\.$domain\|$maildomain\)\(\s\|$\)" -A 2 | awk '/Certificate Path/ {print $3}' | head -n1)" &&