generated from ztimson/template
Update entrypoint.sh
All checks were successful
Build and publish / Build Container (push) Successful in 13s
All checks were successful
Build and publish / Build Container (push) Successful in 13s
This commit is contained in:
@@ -11,7 +11,7 @@ fi
|
||||
if [ -f /data/db/mongod.lock ] || [ -f /data/db/WiredTiger.lock ] || [ -f /data/db/.lock ]; then
|
||||
echo "Stale locks detected, running repair..."
|
||||
rm -f /data/db/mongod.lock /data/db/.lock /data/db/WiredTiger.lock
|
||||
mongod --replSet rs0 --repair
|
||||
mongod --repair
|
||||
echo "Repair complete, starting normally..."
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user