summaryrefslogtreecommitdiff
path: root/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'start.sh')
-rwxr-xr-xstart.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/start.sh b/start.sh
index 80fbd83..d372348 100755
--- a/start.sh
+++ b/start.sh
@@ -1,16 +1,8 @@
#!/bin/bash
# To be called from start-stop-daemon
-APP="mandible"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-LOG=$DIR
cd "$DIR" && \
-PORT=8081 \
-IP=127.0.0.1 \
-STATIC_DIR=$DIR/static \
-IMGUR_GO_CONF=$DIR/config/conf.json \
-UPLOAD_DIR=$DIR/files \
-UPLOAD_URL=https://i.iamfabulous.de \
-ORIGIN_URL=https://images.iamfabulous.de \
-exec "$DIR/$APP" >> ${LOG}/logs/mandible/mandible.log 2 >> ${LOG}/logs/mandible/mandible.err
+source "$DIR"/env.sh && \
+exec "$DIR/$APP" >> ${LOG}/mandible.log 2 >> ${LOG}/mandible.err