Update entrypoint.sh
All checks were successful
Build and publish / Build Container (push) Successful in 13s

This commit is contained in:
2026-05-29 22:05:44 -04:00
parent 090c28fc62
commit 34c5c3b3e1

View File

@@ -11,7 +11,7 @@ fi
if [ -f /data/db/mongod.lock ] || [ -f /data/db/WiredTiger.lock ] || [ -f /data/db/.lock ]; then if [ -f /data/db/mongod.lock ] || [ -f /data/db/WiredTiger.lock ] || [ -f /data/db/.lock ]; then
echo "Stale locks detected, running repair..." echo "Stale locks detected, running repair..."
rm -f /data/db/mongod.lock /data/db/.lock /data/db/WiredTiger.lock rm -f /data/db/mongod.lock /data/db/.lock /data/db/WiredTiger.lock
mongod --replSet rs0 --repair mongod --repair
echo "Repair complete, starting normally..." echo "Repair complete, starting normally..."
fi fi