Spaces:
Sleeping
Sleeping
update
Browse files
start.sh
CHANGED
@@ -29,7 +29,6 @@ echo "MongoDB started successfully"
|
|
29 |
|
30 |
# Initialize replica set
|
31 |
echo "Initializing replica set..."
|
32 |
-
mongosh --eval 'rs.status()' --quiet
|
33 |
if ! mongosh --eval 'rs.status()' --quiet | grep -q 'ok: 1'; then
|
34 |
echo "Initializing replica set..."
|
35 |
mongosh --eval 'rs.initiate({_id: "rs01", members: [{_id: 0, host: "localhost:27017"}]})' || {
|
|
|
29 |
|
30 |
# Initialize replica set
|
31 |
echo "Initializing replica set..."
|
|
|
32 |
if ! mongosh --eval 'rs.status()' --quiet | grep -q 'ok: 1'; then
|
33 |
echo "Initializing replica set..."
|
34 |
mongosh --eval 'rs.initiate({_id: "rs01", members: [{_id: 0, host: "localhost:27017"}]})' || {
|