mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Update mongodb-control
Missed a few mongosh lines.
This commit is contained in:
parent
bbd7765432
commit
a591bf05e0
1 changed files with 6 additions and 6 deletions
|
@ -141,15 +141,15 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disable MongoDB telemetry and free monitoring
|
# Disable MongoDB telemetry and free monitoring
|
||||||
mongosh wekan --eval 'disableTelemetry();' $BIND_OPTIONS
|
mongosh wekan --eval 'disableTelemetry();' $SH_BIND_OPTIONS
|
||||||
mongosh wekan --eval 'db.disableFreeMonitoring();' $BIND_OPTIONS
|
mongosh wekan --eval 'db.disableFreeMonitoring();' $SH_BIND_OPTIONS
|
||||||
# Snap: Disable apparmor="DENIED" at syslog
|
# Snap: Disable apparmor="DENIED" at syslog
|
||||||
# https://github.com/wekan/wekan/issues/4855
|
# https://github.com/wekan/wekan/issues/4855
|
||||||
mongosh wekan --eval 'db.adminCommand({ setParameter: 1, diagnosticDataCollectionEnabled: false});' $BIND_OPTIONS
|
mongosh wekan --eval 'db.adminCommand({ setParameter: 1, diagnosticDataCollectionEnabled: false});' $SH_BIND_OPTIONS
|
||||||
# Drop indexes on database upgrade, when starting MongoDB
|
# Drop indexes on database upgrade, when starting MongoDB
|
||||||
#mongosh wekan --eval "db.getCollectionNames().forEach(function(col_name) { var coll = db.getCollection(col_name); coll.dropIndexes(); });" $BIND_OPTIONS
|
#mongosh wekan --eval "db.getCollectionNames().forEach(function(col_name) { var coll = db.getCollection(col_name); coll.dropIndexes(); });" $SH_BIND_OPTIONS
|
||||||
mongosh wekan --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "4.2" });' $BIND_OPTIONS
|
mongosh wekan --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "4.2" });' $SH_BIND_OPTIONS
|
||||||
# Delete incomplete uploads so that they would not prevent starting WeKan
|
# Delete incomplete uploads so that they would not prevent starting WeKan
|
||||||
mongosh wekan --eval 'db.getCollection("cfs.attachments.filerecord").find( { "uploadedAt": { "$exists": true }, "copies.attachments" : null,"failures.copies.attachments.doneTrying" : {"$ne" : true}});' $BIND_OPTIONS
|
mongosh wekan --eval 'db.getCollection("cfs.attachments.filerecord").find( { "uploadedAt": { "$exists": true }, "copies.attachments" : null,"failures.copies.attachments.doneTrying" : {"$ne" : true}});' $SH_BIND_OPTIONS
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue