thomwolf HF staff commited on
Commit
44c1b90
·
1 Parent(s): 5d735d6
Files changed (1) hide show
  1. start.sh +1 -1
start.sh CHANGED
@@ -15,7 +15,7 @@ while ! mongosh --quiet --eval "db.version()" > /dev/null 2>&1; do
15
  if [ $attempt -gt $max_attempts ]; then
16
  echo "MongoDB failed to start. Showing logs:"
17
  cat /var/log/mongodb.log
18
- exit 1
19
  fi
20
  echo "Attempt $attempt of $max_attempts: MongoDB not ready yet..."
21
  sleep 2
 
15
  if [ $attempt -gt $max_attempts ]; then
16
  echo "MongoDB failed to start. Showing logs:"
17
  cat /var/log/mongodb.log
18
+ exit 0
19
  fi
20
  echo "Attempt $attempt of $max_attempts: MongoDB not ready yet..."
21
  sleep 2