Updating mongo install script for v4.4

This commit is contained in:
Chris Troutner
2021-02-04 15:56:08 -08:00
parent 2a8058000d
commit 8aa418753e
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
#!/bin/bash
#sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
#echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
sudo systemctl enable mongod
+3 -3
View File
@@ -126,9 +126,9 @@ class Validators {
if (ctx.state.user._id.toString() !== targetId.toString()) {
wlogger.verbose(
`Calling user and target user do not match! Calling user: ${
ctx.state.user._id
}, Target user: ${targetId}`
`Calling user and target user do not match! Calling user: ${
ctx.state.user._id
}, Target user: ${targetId}`
)
// If they don't match, then the calling user better be an admin.