Skip to content

Commit

Permalink
fix mongodb install
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Sep 20, 2022
1 parent 6fef470 commit 6e51b1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tpl/add-mongo.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -38,4 +37,3 @@ systemctl restart mongod
# added by abbas
sleep 90
mongo admin --eval 'db.runCommand({setFeatureCompatibilityVersion: "3.4"})'

0 comments on commit 6e51b1b

Please sign in to comment.