Disable MongoDB telemetry and free monitoring in WeKan Snap.

Thanks to webenefits and xet7 !

Related #4855
This commit is contained in:
Lauri Ojansivu 2023-03-26 14:03:17 +03:00
parent d92a97ff1e
commit df152e292d

View file

@ -129,6 +129,9 @@ else
mongod --dbpath $SNAP_COMMON --logpath /dev/null --journal $MONGO_URL --quiet
fi
# Disable MongoDB telemetry and free monitoring
mongo --eval "disableTelemetry()"
mongo --eval "db.disableFreeMonitoring()"
# Drop indexes on database upgrade, when starting MongoDB
#mongo wekan --eval "db.getCollectionNames().forEach(function(col_name) { var coll = db.getCollection(col_name); coll.dropIndexes(); });" $BIND_OPTIONS
mongo wekan --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "4.2" });' $BIND_OPTIONS