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 407e559
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ 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 [ -z "$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
until docker-compose exec -T mongo mongo --eval "db.serverStatus()" &> /dev/null;
fi
t do
do
printf "."
sleep 1
done
Expand Down

0 comments on commit 407e559

Please sign in to comment.