gabrielmbmb HF staff commited on
Commit
88c54bb
1 Parent(s): f95568f

Update entrypoint.sh.template

Browse files
Files changed (1) hide show
  1. entrypoint.sh.template +2 -1
entrypoint.sh.template CHANGED
@@ -1,8 +1,9 @@
1
  #!/bin/bash
2
 
3
  # Make sure `/data/db` directory exists even with persistent storage
4
- rm /data/db/mongod.lock
5
  mkdir -p /data/db
 
 
6
  # Start the local Mongo database
7
  mongod &
8
 
 
1
  #!/bin/bash
2
 
3
  # Make sure `/data/db` directory exists even with persistent storage
 
4
  mkdir -p /data/db
5
+ # If app crashed, mongo didn't gracefully stopped. Remove old mongod.lock
6
+ rm -f /data/db/mongod.lock
7
  # Start the local Mongo database
8
  mongod &
9