Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
replace removed mongo command with new mongosh
Browse files Browse the repository at this point in the history
  • Loading branch information
virgilchiriac committed Jul 8, 2024
1 parent e85570e commit 4d4c5bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mongo_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
sleep 10

echo SETUP.sh time now: `date +"%T" `
mongo --host mongodb-primary:27017 --eval 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "mongodb-primary:27017" }]})'
mongo --host mongodb-primary:27017 << EOF
mongosh --host mongodb-primary:27017 --eval 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "mongodb-primary:27017" }]})'
mongosh --host mongodb-primary:27017 << EOF
var cfg = {
"_id": "rs0",
"version": 1,
Expand Down

0 comments on commit 4d4c5bb

Please sign in to comment.