Skip to content

Commit b493a3c

Browse files
authored
DOCSP-35854 Fixes Installation URL's (#6008)
* DOCSP-35854 Fixes Ubuntu Community/Enterprise URL * Fixes Debian key * Fixes url * Fixes url * Fixes url * Fixes link * Refactors Debian calls * Fixes Debian curl include
1 parent 5ab54ed commit b493a3c

7 files changed

+29
-13
lines changed

source/includes/curl-apt-org-gpg.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
From a terminal, install ``gnupg`` and ``curl`` if they are not already
3+
available:
4+
5+
.. code-block:: bash
6+
7+
sudo apt-get install gnupg curl
8+
9+
To import the MongoDB public GPG key from
10+
`https://www.mongodb.org/static/pgp/server-{+version+}.asc`__, run the
11+
following command:
12+
13+
.. code-block:: bash
14+
15+
curl -fsSL https://www.mongodb.org/static/pgp/server-{+version+}.asc | \
16+
sudo gpg -o /usr/share/keyrings/mongodb-server-{+version+}.gpg \
17+
--dearmor

source/includes/steps-install-mongodb-enterprise-on-debian.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
stepnum: 1
22
level: 4
3-
source:
4-
file: steps-install-mongodb-on-debian.yaml
5-
ref: import-key
3+
ref: import-key
4+
content: |
5+
.. include:: /includes/curl-apt-com-gpg
66
---
77
title: Create a ``/etc/apt/sources.list.d/mongodb-enterprise.list`` file for MongoDB.
88
stepnum: 2

source/includes/steps-install-mongodb-enterprise-on-ubuntu.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
stepnum: 1
22
level: 4
3-
ref: import-deb-key
4-
source:
5-
file: steps-install-mongodb-on-ubuntu.yaml
6-
ref: import-key
3+
ref: import-key
4+
content: |
5+
.. include:: /includes/curl-apt-com-gpg
76
---
87
title: Create a list file for MongoDB
98
stepnum: 2

source/includes/steps-install-mongodb-on-debian.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
stepnum: 1
22
level: 4
3-
source:
4-
file: steps-install-mongodb-on-ubuntu.yaml
5-
ref: import-key
3+
ref: import-key
4+
content: |
5+
.. include:: /includes/curl-apt-org-gpg
66
---
77
title: Create a ``/etc/apt/sources.list.d/mongodb-org-{+version+}.list`` file for MongoDB.
88
stepnum: 2

source/includes/steps-install-mongodb-on-red-hat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ content: |
1515
1616
[mongodb-org-{+version+}]
1717
name=MongoDB Repository
18-
baseurl=https://repo.mongodb.com/yum/redhat/9/mongodb-org/{+version+}/x86_64/
18+
baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/{+version+}/x86_64/
1919
gpgcheck=1
2020
enabled=1
2121
gpgkey=https://pgp.mongodb.com/server-{+pgp-version+}.asc

source/includes/steps-install-mongodb-on-ubuntu.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ stepnum: 1
33
level: 4
44
ref: import-key
55
content: |
6-
.. include:: /includes/curl-apt-gpg
6+
.. include:: /includes/curl-apt-org-gpg
77
---
88
title: Create a list file for MongoDB
99
stepnum: 2
@@ -25,7 +25,7 @@ content: |
2525
2626
.. code-block:: bash
2727
28-
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-{+version+}.gpg ] https://repo.mongodb.com/apt/ubuntu jammy/mongodb-org/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
28+
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-{+version+}.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
2929
3030
.. tab:: Ubuntu 20.04 (Focal)
3131
:tabid: focal

0 commit comments

Comments
 (0)