From e60020a9988bfcd686aa179db218a7866cb30feb Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 22 Oct 2025 07:41:30 -0700 Subject: [PATCH] omada: remove static mongodb install (#8577) --- install/omada-install.sh | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/install/omada-install.sh b/install/omada-install.sh index 4ef8dc25a..305c9fc9e 100644 --- a/install/omada-install.sh +++ b/install/omada-install.sh @@ -19,11 +19,11 @@ msg_ok "Installed Dependencies" msg_info "Checking CPU Features" if lscpu | grep -q 'avx'; then - MONGODB_VERSION="7.0" - msg_ok "AVX detected: Using MongoDB 7.0" + MONGODB_VERSION="8.0" + msg_ok "AVX detected: Using MongoDB 8.0" + MONGO_VERSION="8.0" setup_mongodb else - msg_error "No AVX detected: TP-Link Canceled Support for Old MongoDB for Debian 12\n https://www.tp-link.com/baltic/support/faq/4160/" - exit 0 + MONGO_VERSION="4.4" setup_mongodb fi msg_info "Installing Azul Zulu Java" @@ -34,27 +34,15 @@ $STD apt update $STD apt -y install zulu21-jre-headless msg_ok "Installed Azul Zulu Java" -msg_info "Installing libssl (if needed)" + if ! dpkg -l | grep -q 'libssl1.1'; then + msg_info "Installing libssl (if needed)" curl -fsSL "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb" -o "/tmp/libssl.deb" $STD dpkg -i /tmp/libssl.deb rm -f /tmp/libssl.deb msg_ok "Installed libssl1.1" fi -msg_info "Installing MongoDB $MONGODB_VERSION" -curl -fsSL "https://www.mongodb.org/static/pgp/server-${MONGODB_VERSION}.asc" | gpg --dearmor >/usr/share/keyrings/mongodb-server-${MONGODB_VERSION}.gpg -cat </etc/apt/sources.list.d/mongodb-org-${MONGODB_VERSION}.sources -Types: deb -URIs: http://repo.mongodb.org/apt/debian -Suites: $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/${MONGODB_VERSION} -Components: main -Signed-By: /usr/share/keyrings/mongodb-server-${MONGODB_VERSION}.gpg -EOF -$STD apt update -$STD apt install -y mongodb-org -msg_ok "Installed MongoDB $MONGODB_VERSION" - msg_info "Installing Omada Controller" OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/omada-controller/" | grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' |