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/init-mongodb.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'data/init-mongodb.js') diff --git a/data/init-mongodb.js b/data/init-mongodb.js index 6057d84..054dfd1 100644 --- a/data/init-mongodb.js +++ b/data/init-mongodb.js @@ -1,8 +1,3 @@ - -// To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy). -// You can opt-out by running the disableTelemetry() command. -disableTelemetry() - // Create the DB by inserting some data db.REPLACE_COLLECTION.insertOne({init_key: "init_data"}) @@ -23,6 +18,9 @@ db.createUser( // Delete the init data db.REPLACE_COLLECTION.deleteOne({init_key: "init_data"}) +// Add healthcheck +db.healthcheck.insertOne({healthcheck: "ok"}) + // Disable the ad about monitoring db.disableFreeMonitoring() -- cgit v1.1