mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
Updating mongo install script for v4.4
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user