Try to fix Snap.

This commit is contained in:
Lauri Ojansivu 2019-08-04 01:33:18 +03:00
parent 5db3dcf8da
commit a7f7e00a14
3 changed files with 6 additions and 2 deletions

View file

@ -30,3 +30,6 @@ fi
echo "mongodb bind options: $BIND_OPTIONS"
mongod --dbpath $SNAP_COMMON --logpath $SNAP_COMMON/mongodb.log --logappend --journal $BIND_OPTIONS --smallfiles
# 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