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

Commit

Permalink
fix: mongosh in provision.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVZ96 committed Feb 17, 2024
1 parent 29b08cd commit adc014e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ if needs_mongo "$to_provision_ordered"; then
echo -e "${GREEN}Waiting for MongoDB...${NC}"
# mongo container and mongo process/shell inside the container
MONGO_SHELL=$(docker-compose exec -T mongo which mongosh)
if [[ $MONGO_SHELL ]] then
until docker-compose exec -T mongo mongosh --eval "db.serverStatus()" &> /dev/null
if [[ $MONGO_SHELL ]]; then
until docker-compose exec -T --eval "db.serverStatus()" &> /dev/null
else
until docker-compose exec -T mongo mongo --eval "db.serverStatus()" &> /dev/null
fi
Expand Down

0 comments on commit adc014e

Please sign in to comment.