Browse Source

add repair step, remove nojournal directive

master
Charles Reid 1 year ago
parent
commit
d0bd4ddf4a
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      scripts/first_run.sh

+ 4
- 1
scripts/first_run.sh View File

@@ -10,8 +10,11 @@ else
ROLE=${MONGODB_ROLE:-dbAdminAnyDatabase}
fi

# Repair database
/usr/bin/mongod --repair --dbpath /data

# Start MongoDB service
/usr/bin/mongod --dbpath /data --nojournal &
/usr/bin/mongod --dbpath /data &
while ! nc -vz localhost 27017; do sleep 1; done

# Create User

Loading…
Cancel
Save