rearranging helper scripts in snap-src

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
This commit is contained in:
Ondrej Kubik 2017-11-04 18:56:35 +00:00
parent 26f66f3cf0
commit a533caa944
8 changed files with 0 additions and 8 deletions

View file

@ -1,16 +0,0 @@
#!/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