Skip to content

Commit 44bb719

Browse files
Revert "(DOCS-15274): MongoDB installs are now notarized on macOS (#1061) (#1062)" (#1180)
This reverts commit 2f0d21c9dcf40d8478c2f582e63ad6eb2a69c6f6.
1 parent eb584cf commit 44bb719

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ref: macos-prevent-launch-mongod
2+
source:
3+
ref: _macos-prevent-launch
4+
file: extracts-macos-prevent-launch-base.yaml
5+
replacement:
6+
binary_name: ":binary:`~bin.mongod`"
7+
---
8+
ref: macos-prevent-launch-mongo
9+
source:
10+
ref: _macos-prevent-launch
11+
file: extracts-macos-prevent-launch-base.yaml
12+
replacement:
13+
binary_name: ":binary:`~bin.mongosh`"
14+
...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ref: _macos-prevent-launch
2+
content: |
3+
macOS may prevent {{binary_name}} from running after installation. If
4+
you receive a security error when starting {{binary_name}}
5+
indicating that the developer could not be identified or verified,
6+
do the following to grant {{binary_name}} access to run:
7+
8+
- Open *System Preferences*
9+
- Select the *Security and Privacy* pane.
10+
- Under the *General* tab, click the button to the right of the
11+
message about {{binary_name}}, labelled either :guilabel:`Open
12+
Anyway` or :guilabel:`Allow Anyway` depending on your version of
13+
macOS.
14+
...

source/includes/steps-run-mongodb-on-osx.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ action:
7676
language: sh
7777
code: |
7878
mongod --config /usr/local/etc/mongod.conf
79+
post: |
80+
.. note:: macOS Prevents ``mongod`` From Opening
81+
82+
83+
.. include:: /includes/extracts/macos-prevent-launch-mongod.rst
7984
8085
# End-for-getting-started-guide
8186
---
@@ -106,6 +111,10 @@ action:
106111
code: |
107112
mongosh
108113
post: |
114+
.. note:: macOS Prevents ``mongosh`` From Opening
115+
116+
117+
.. include:: /includes/extracts/macos-prevent-launch-mongo.rst
109118
110119
For more information on connecting using :binary:`~bin.mongosh`,
111120
such as to connect to a :binary:`~bin.mongod` instance running
@@ -120,3 +129,4 @@ replacement:
120129
mongod: ":binary:`~bin.mongod`"
121130
mongo: ":binary:`~bin.mongosh`"
122131
...
132+

source/tutorial/install-mongodb-on-os-x.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ during the install. You can add your own MongoDB
227227
:doc:`configuration options </reference/configuration-options>` to
228228
this file as well.
229229

230+
.. note:: macOS Prevents ``mongod`` From Opening
231+
232+
.. include:: /includes/extracts/macos-prevent-launch-mongod.rst
233+
230234
To verify that MongoDB is running, perform one of the following:
231235

232236
- If you started MongoDB **as a macOS service**:
@@ -259,6 +263,10 @@ running instance. From a new terminal, issue the following:
259263

260264
mongosh
261265

266+
.. note:: macOS Prevents ``mongosh`` From Opening
267+
268+
.. include:: /includes/extracts/macos-prevent-launch-mongo.rst
269+
262270
For information on CRUD (Create,Read,Update,Delete) operations, see:
263271

264272
- :doc:`/tutorial/insert-documents`

0 commit comments

Comments
 (0)