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.com3167e03a3d8f
diff --git a/install.sh b/install.sh
index 74a0856d..ce4572a3 100644
--- a/install.sh
+++ b/install.sh
@@ -32,13 +32,14 @@ mirror=''
Default_Download_Url=""
CPU_architecture=$(uname -m)
-if [ "${CPU_architecture}" == "s390x" ];then
+
+# List of supported architectures
+SUPPORTED_ARCHS=("x86_64" "aarch64")
+
+# Check whether the current architecture is supported
+if [[ ! " ${SUPPORTED_ARCHS[@]} " =~ " ${CPU_architecture} " ]]; then
echo -e "\033[31mSorry, not support the s390x architecture for install. \nPlease use the x86_64, aarch64 server architecture. \033[0m"
exit 1
-else
- echo " ${CPU_architecture} architecture is not currently supported."
- uname -a
- exit 1
fi
is64bit=$(getconf LONG_BIT)