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

Commit

Permalink
fix mongo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas committed Apr 16, 2024
1 parent f4926f0 commit cdf44c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/mongo_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
sleep 10

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

0 comments on commit cdf44c0

Please sign in to comment.