mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Try to fix Snap.
This commit is contained in:
parent
5db3dcf8da
commit
a7f7e00a14
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -13,4 +13,4 @@ export LC_ALL=C
|
|||
# start mongodb backup
|
||||
[ "x" == "x${MONGODB_BIND_IP}" ] && MONGODB_BIND_IP="127.0.0.1"
|
||||
echo "using bind ip"
|
||||
mongorestore --host $MONGODB_BIND_IP --port $MONGODB_PORT -d wekan --gzip --archive=$1
|
||||
mongorestore --host $MONGODB_BIND_IP --port $MONGODB_PORT -d wekan --noIndexRestore --gzip --archive=$1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue