Skip to content

Commit

Permalink
Changes required for Mongo 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Aug 25, 2022
1 parent 51f4241 commit 9d2b861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions db/init/init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

mongo --eval "const WEB_SIXGG_PASSWORD = '$(cat $WEB_SIXGG_PASSWORD_FILE)';" 127.0.0.1:27017 /var/mongo/init.js
mongo 127.0.0.1:27017 /var/mongo/migrations/index.js
mongosh --eval "const WEB_SIXGG_PASSWORD = '$(cat $WEB_SIXGG_PASSWORD_FILE)';" 127.0.0.1:27017 /var/mongo/init.js
mongosh 127.0.0.1:27017 /var/mongo/migrations/index.js
touch /data/db/initialized
2 changes: 1 addition & 1 deletion db/mongo/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
logfile="${TMPDIR:-/tmp}/start-temp-mongod.log"

# The command line to use for mongo.
mongo=( mongo --host 127.0.0.1 --port 27017 -u "$(cat $MONGO_INITDB_ROOT_USERNAME_FILE)" -p "$(cat $MONGO_INITDB_ROOT_PASSWORD_FILE)" )
mongo=( mongosh --host 127.0.0.1 --port 27017 -u "$(cat $MONGO_INITDB_ROOT_USERNAME_FILE)" -p "$(cat $MONGO_INITDB_ROOT_PASSWORD_FILE)" )

# Remove any existing temp file.
rm -f "$pidfile"
Expand Down

0 comments on commit 9d2b861

Please sign in to comment.