1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-03-08 13:19:05 +00:00

Update omada.sh

This commit is contained in:
CanbiZ 2025-02-25 08:46:18 +01:00 committed by GitHub
parent 02fb3ab9b4
commit bef3ccd164
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,9 +29,11 @@ function update_script() {
fi fi
msg_info "Updating MongoDB" msg_info "Updating MongoDB"
MONGODB_VERSION="8.0" MONGODB_VERSION="7.0"
if ! lscpu | grep -q 'avx'; then if ! lscpu | grep -q 'avx'; then
MONGODB_VERSION="4.4" MONGODB_VERSION="4.4"
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 1
fi fi
wget -qO- https://www.mongodb.org/static/pgp/server-${MONGODB_VERSION}.asc | gpg --dearmor >/usr/share/keyrings/mongodb-server-${MONGODB_VERSION}.gpg wget -qO- https://www.mongodb.org/static/pgp/server-${MONGODB_VERSION}.asc | gpg --dearmor >/usr/share/keyrings/mongodb-server-${MONGODB_VERSION}.gpg