summaryrefslogtreecommitdiffstats
path: root/snap-src/mongodb-control
diff options
context:
space:
mode:
authorOndrej Kubik <ondrej.kubik@canonical.com>2017-11-04 18:56:35 +0000
committerOndrej Kubik <ondrej.kubik@canonical.com>2018-02-21 22:29:23 +0000
commita533caa9447c78fd007dfb7ada15c41390e97e05 (patch)
treeca10260f0cced29df3048e9d371e29c26bfb4923 /snap-src/mongodb-control
parent26f66f3cf05d3ab3dd633d02399cea5aa5a99c00 (diff)
downloadwekan-a533caa9447c78fd007dfb7ada15c41390e97e05.tar.gz
wekan-a533caa9447c78fd007dfb7ada15c41390e97e05.tar.bz2
wekan-a533caa9447c78fd007dfb7ada15c41390e97e05.zip
rearranging helper scripts in snap-src
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
Diffstat (limited to 'snap-src/mongodb-control')
-rwxr-xr-xsnap-src/mongodb-control31
1 files changed, 0 insertions, 31 deletions
diff --git a/snap-src/mongodb-control b/snap-src/mongodb-control
deleted file mode 100755
index 08af132d..00000000
--- a/snap-src/mongodb-control
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-# get wekan/mongo settings
-source $SNAP/bin/wekan-read-settings
-
-if [ "true" == "${DISABLE_MONGODB}" ]; then
- echo "mongodb is disabled. Not starting it"
- exit 0
-fi
-
-# 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 mongo deamon
-BIND_OPTIONS=""
-if [ "nill" != "$MONGODB_BIND_UNIX_SOCKET" ] && [ "x" != "x${MONGODB_BIND_UNIX_SOCKET}" ]; then
- BIND_OPTIONS+=" --unixSocketPrefix $MONGODB_BIND_UNIX_SOCKET"
-fi
-if [ "x" != "x${MONGODB_BIND_IP}" ]; then
- BIND_OPTIONS+=" --bind_ip $MONGODB_BIND_IP"
-fi
-if [ "x" != "x${MONGODB_PORT}" ]; then
- BIND_OPTIONS+=" --port $MONGODB_PORT"
-fi
-echo "mongodb bind options: $BIND_OPTIONS"
-
-mongod --dbpath $SNAP_COMMON --logpath $SNAP_COMMON/mongodb.log --logappend --journal $BIND_OPTIONS