summaryrefslogtreecommitdiff
path: root/data/mongodb_entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/mongodb_entrypoint.sh')
-rwxr-xr-xdata/mongodb_entrypoint.sh4
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
+