diff --git a/docs/02-manual-operations.md b/docs/02-manual-operations.md index 318b291..9ab8af5 100644 --- a/docs/02-manual-operations.md +++ b/docs/02-manual-operations.md @@ -109,8 +109,8 @@ $ sudo bundle install Install MongoDB which your application uses: ```bash -$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 -$ echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list +$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E52529D4 +$ sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-4.0.list' $ sudo apt-get update $ sudo apt-get install -y mongodb-org ``` diff --git a/docs/03-scripts.md b/docs/03-scripts.md index e53a828..87a8da0 100644 --- a/docs/03-scripts.md +++ b/docs/03-scripts.md @@ -66,8 +66,8 @@ apt-get install -y ruby-full build-essential gem install --no-rdoc --no-ri bundler echo " ----- install mongodb ----- " -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 -echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E52529D4 +sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-4.0.list' apt-get update apt-get install -y mongodb-org