File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -341,12 +341,12 @@ if [ $# -eq 0 ]; then
341
341
exit 1
342
342
fi
343
343
344
- echo " [mongodb-org-7 .0]
344
+ echo " [mongodb-org-8 .0]
345
345
name=MongoDB Repository
346
- baseurl=https://repo.mongodb.org/yum/redhat/${CENTOS_MAJOR} /mongodb-org/7 .0/x86_64/
346
+ baseurl=https://repo.mongodb.org/yum/redhat/${CENTOS_MAJOR} /mongodb-org/8 .0/x86_64/
347
347
gpgcheck=1
348
348
enabled=1
349
- gpgkey=https://www .mongodb.org/static/pgp/ server-7 .0.asc" > /etc/yum.repos.d/mongodb-org-7 .0.repo
349
+ gpgkey=https://pgp .mongodb.com/ server-8 .0.asc" > /etc/yum.repos.d/mongodb-org-8 .0.repo
350
350
351
351
yum install -y mongodb-org
352
352
elif [ -f /etc/lsb-release ]; then
@@ -359,12 +359,12 @@ gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc" > /etc/yum.repos.d/mon
359
359
exit 1
360
360
fi
361
361
362
- wget -qO - https://www.mongodb.org/static/pgp/server-7 .0.asc | sudo apt-key add -
363
- echo " deb [ arch=amd64,arm64 ] http ://repo.mongodb.org/apt/ubuntu ${UBUNTU_RELEASE} /mongodb-org/7 .0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7 .0.list ;
362
+ curl -fsSL https://www.mongodb.org/static/pgp/server-8 .0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
363
+ echo " deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https ://repo.mongodb.org/apt/ubuntu ${UBUNTU_RELEASE} /mongodb-org/8 .0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8 .0.list
364
364
apt-get update
365
365
DEBIAN_FRONTEND=" noninteractive" apt-get install -y mongodb-org || (echo " Failed to install mongodb." ; exit)
366
366
else
367
- echo " Unsupported OS or version, only CentOS/RHEL 8 or 9 and Ubuntu 20 or 22."
367
+ echo " Unsupported OS or version, only CentOS/RHEL 8 or 9 and Ubuntu 20 or 22 or 24 ."
368
368
exit 1
369
369
fi
370
370
You can’t perform that action at this time.
0 commit comments