diff options
Diffstat (limited to 'start.sh')
| -rwxr-xr-x | start.sh | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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 |
