diff options
author | Victor Näslund <victor@sunet.se> | 2022-11-13 22:28:12 +0100 |
---|---|---|
committer | Victor Näslund <victor@sunet.se> | 2022-11-13 22:28:12 +0100 |
commit | dd901cd2cfc2b72b18ea0fcac0cc478b33198d2d (patch) | |
tree | fefa4853f4a9b49655208af46e48e31edff1e538 /data/mongodb_entrypoint.sh | |
parent | 563607809d993c9e496423829b1f93def22a4aac (diff) |
better mongodb handling
Diffstat (limited to 'data/mongodb_entrypoint.sh')
-rwxr-xr-x | data/mongodb_entrypoint.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/mongodb_entrypoint.sh b/data/mongodb_entrypoint.sh index 7a81abc..81ed619 100755 --- a/data/mongodb_entrypoint.sh +++ b/data/mongodb_entrypoint.sh @@ -11,7 +11,8 @@ then sed -i "s/REPLACE_COLLECTION/$MONGODB_COLLECTION/g" /data/db/init-mongodb.js # Update and shutdown our DB with changes - /usr/bin/mongosh localhost:27015/production /data/db/init-mongodb.js + /usr/bin/mongosh --eval 'disableTelemetry()' localhost:27015/production /data/db/init-mongodb.js + # /usr/bin/mongosh localhost:27015/production /data/db/init-mongodb.js sleep 1 # Allow DB to shutdown /usr/bin/touch /data/db/user_exist rm /data/db/init-mongodb.js @@ -19,3 +20,4 @@ fi # Startup normally now with our user exec /usr/bin/mongod --nounixsocket --bind_ip_all --auth + |