mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Disable MongoDB telemetry and free monitoring in WeKan Snap.
Thanks to webenefits and xet7 ! Related #4855
This commit is contained in:
parent
d92a97ff1e
commit
df152e292d
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ else
|
||||||
mongod --dbpath $SNAP_COMMON --logpath /dev/null --journal $MONGO_URL --quiet
|
mongod --dbpath $SNAP_COMMON --logpath /dev/null --journal $MONGO_URL --quiet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Disable MongoDB telemetry and free monitoring
|
||||||
|
mongo --eval "disableTelemetry()"
|
||||||
|
mongo --eval "db.disableFreeMonitoring()"
|
||||||
# Drop indexes on database upgrade, when starting MongoDB
|
# 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.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
|
mongo wekan --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "4.2" });' $BIND_OPTIONS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue