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"})' -