From 6e51b1b453b074303f3d68d34c3441465180dfee Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Tue, 20 Sep 2022 12:11:17 +0200 Subject: [PATCH] fix mongodb install --- tpl/add-mongo.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tpl/add-mongo.sh b/tpl/add-mongo.sh index d3b9ca5..365e4f4 100644 --- a/tpl/add-mongo.sh +++ b/tpl/add-mongo.sh @@ -1,8 +1,7 @@ # mongo if ! _skip_install mongodb-org-server; then - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 - echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" \ - > /etc/apt/sources.list.d/mongodb-org-3.4.list + wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - + echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list apt-get -y update apt-get -y install --no-install-recommends \ @@ -38,4 +37,3 @@ systemctl restart mongod # added by abbas sleep 90 mongo admin --eval 'db.runCommand({setFeatureCompatibilityVersion: "3.4"})' -