File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,13 @@ function update_script() {
2929 fi
3030
3131 msg_info " Updating MongoDB"
32- MONGODB_VERSION= " 7.0 "
33- if ! lscpu | grep -q ' avx ' ; then
34- MONGODB_VERSION= " 4.4 "
35- 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/ "
36- exit
32+ if lscpu | grep -q ' avx ' ; then
33+ MONGO_VERSION= " 8.0 " setup_mongodb
34+ else
35+ msg_warn " No AVX detected: Using older MongoDB 4.4 "
36+ MONGO_VERSION= " 4.4 " setup_mongodb
3737 fi
3838
39- curl -fsSL " https://www.mongodb.org/static/pgp/server-${MONGODB_VERSION} .asc" | gpg --dearmor > /usr/share/keyrings/mongodb-server-${MONGODB_VERSION} .gpg
40- echo " deb [signed-by=/usr/share/keyrings/mongodb-server-${MONGODB_VERSION} .gpg] http://repo.mongodb.org/apt/debian $( grep ' ^VERSION_CODENAME=' /etc/os-release | cut -d' =' -f2) /mongodb-org/${MONGODB_VERSION} main" > /etc/apt/sources.list.d/mongodb-org-${MONGODB_VERSION} .list
41- $STD apt update
42- $STD apt install -y --only-upgrade mongodb-org
43- msg_ok " Updated MongoDB to $MONGODB_VERSION "
44-
4539 msg_info " Checking if right Azul Zulu Java is installed"
4640 java_version=$( java -version 2>&1 | awk -F[\" _] ' /version/ {print $2}' )
4741 if [[ " $java_version " =~ ^1\. 8\. * ]]; then
You can’t perform that action at this time.
0 commit comments