omada: remove static mongodb install (#8577)
This commit is contained in:
parent
dfda118e65
commit
e60020a998
@ -19,11 +19,11 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
msg_info "Checking CPU Features"
|
msg_info "Checking CPU Features"
|
||||||
if lscpu | grep -q 'avx'; then
|
if lscpu | grep -q 'avx'; then
|
||||||
MONGODB_VERSION="7.0"
|
MONGODB_VERSION="8.0"
|
||||||
msg_ok "AVX detected: Using MongoDB 7.0"
|
msg_ok "AVX detected: Using MongoDB 8.0"
|
||||||
|
MONGO_VERSION="8.0" setup_mongodb
|
||||||
else
|
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/"
|
MONGO_VERSION="4.4" setup_mongodb
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Installing Azul Zulu Java"
|
msg_info "Installing Azul Zulu Java"
|
||||||
@ -34,27 +34,15 @@ $STD apt update
|
|||||||
$STD apt -y install zulu21-jre-headless
|
$STD apt -y install zulu21-jre-headless
|
||||||
msg_ok "Installed Azul Zulu Java"
|
msg_ok "Installed Azul Zulu Java"
|
||||||
|
|
||||||
msg_info "Installing libssl (if needed)"
|
|
||||||
if ! dpkg -l | grep -q 'libssl1.1'; then
|
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"
|
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
|
$STD dpkg -i /tmp/libssl.deb
|
||||||
rm -f /tmp/libssl.deb
|
rm -f /tmp/libssl.deb
|
||||||
msg_ok "Installed libssl1.1"
|
msg_ok "Installed libssl1.1"
|
||||||
fi
|
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 <<EOF >/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"
|
msg_info "Installing Omada Controller"
|
||||||
OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/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' |
|
grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user