From dd901cd2cfc2b72b18ea0fcac0cc478b33198d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20N=C3=A4slund?= Date: Sun, 13 Nov 2022 22:28:12 +0100 Subject: better mongodb handling --- data/mongodb_entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data/mongodb_entrypoint.sh') 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 + -- cgit v1.1