Skip to content

Commit 82ee63a

Browse files
authored
Use MongoDB 4.4 in Unifi for non-AVX users (#691)
1 parent 102669c commit 82ee63a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

install/unifi-install.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@ msg_ok "Installed Eclipse Temurin JRE"
3030

3131
if ! grep -q -m1 'avx[^ ]*' /proc/cpuinfo; then
3232
msg_ok "No AVX Support Detected"
33-
msg_info "Installing MongoDB 4.2"
33+
msg_info "Installing MongoDB 4.4"
3434
if ! dpkg -l | grep -q "libssl1.1"; then
3535
wget -q http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb
3636
$STD dpkg -i libssl1.1_1.1.1n-0+deb10u6_amd64.deb
37-
$STD apt-get install -f -y # Fix any broken dependencies
3837
fi
39-
wget -qO- https://www.mongodb.org/static/pgp/server-4.2.asc | gpg --dearmor > /usr/share/keyrings/mongodb-server-4.2.gpg
40-
echo "deb [signed-by=/usr/share/keyrings/mongodb-server-4.2.gpg] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" >/etc/apt/sources.list.d/mongodb-org-4.2.list
38+
wget -qO- https://www.mongodb.org/static/pgp/server-4.4.asc | gpg --dearmor > /usr/share/keyrings/mongodb-server-4.4.gpg
39+
echo "deb [signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list
4140
$STD apt-get update
42-
$STD apt-get install -y mongodb-org=4.2.17
41+
$STD apt-get install -y mongodb-org
4342
else
4443
msg_info "Installing MongoDB 7.0"
4544
wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor >/usr/share/keyrings/mongodb-server-7.0.gpg

json/unifi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"notes": [
3434
{
35-
"text": "For non-AVX CPUs, MongoDB 4.2 is installed. Please note this is a legacy solution that may present security risks and could become unsupported in future updates.",
35+
"text": "For non-AVX CPUs, MongoDB 4.4 is installed. Please note this is a legacy solution that may present security risks and could become unsupported in future updates.",
3636
"type": "warning"
3737
}
3838
]

0 commit comments

Comments
 (0)