mirror of
https://github.com/wekan/wekan.git
synced 2026-01-02 15:48:49 +01:00
Adding snapcraft build support from source
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
This commit is contained in:
parent
60495e4765
commit
a538c14976
11 changed files with 385 additions and 0 deletions
16
snap-src/mongodb-restore
Executable file
16
snap-src/mongodb-restore
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# get wekan/mongo settings
|
||||
source $SNAP/bin/wekan-read-settings
|
||||
|
||||
# make sure we have set minimum env variables for locale
|
||||
if [ -z "$LANG" ]; then
|
||||
export LANG=en_US.UTF-8
|
||||
fi
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue