Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Update install.sh

aapanel.com5fe6cd014435
diff --git a/install.sh b/install.sh
index 49d64f6a..3fdc4ef2 100644
--- a/install.sh
+++ b/install.sh
@@ -1262,6 +1262,10 @@ Init_Billionmail()
Billionmail(){
Check_Port=$(ss -tlnp | grep -E ":(${HTTP_PORT})\b")
+ if [ ! -z "${Check_Port}" ]; then
+ HTTP_PORT=5678
+ Check_Port=$(ss -tlnp | grep -E ":(${HTTP_PORT})\b")
+ fi
if [ ! -z "${Check_Port}" ]; then
echo -e "${HTTP_PORT} Already used, random ports are being used"
while true; do
@@ -1274,6 +1278,10 @@ Billionmail(){
fi
Check_Port22=$(ss -tlnp | grep -E ":(${HTTPS_PORT})\b")
+ if [ ! -z "${Check_Port22}" ]; then
+ HTTPS_PORT=5679
+ Check_Port22=$(ss -tlnp | grep -E ":(${HTTPS_PORT})\b")
+ fi
if [ ! -z "${Check_Port22}" ]; then
echo -e "${HTTPS_PORT} Already used, random ports are being used"
while true; do