mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 16:21:35 +01:00
Update run.sh
This commit is contained in:
@@ -20,18 +20,20 @@ chmod -R 777 "$LOCATION"
|
||||
|
||||
echo "Launch app"
|
||||
su -l wger -c "\
|
||||
export WORKDIR="/home/wger/src" && \
|
||||
export S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=300000 \
|
||||
S6_SERVICES_GRACETIME=300000 \
|
||||
PATH=/home/wger/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||
FROM_EMAIL='wger Workout Manager <wger@example.com>' \
|
||||
DJANGO_DB_DATABASE=/data/database.sqlite \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
LANG=en_US.UTF-8 \
|
||||
LANGUAGE=en_US:en \
|
||||
LC_ALL=en_US.UTF-8 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
WORKDIR="/home/wger/src" && \
|
||||
cd /home/wger/src && \
|
||||
echo "Starting app" && \
|
||||
DOCKER_DIR=./extras/docker/development && \
|
||||
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
|
||||
export FROM_EMAIL='wger Workout Manager <wger@example.com>' && \
|
||||
export DJANGO_DB_DATABASE=/data/database.sqlite && \
|
||||
export DEBIAN_FRONTEND=noninteractive && \
|
||||
LANG=en_US.UTF-8 && \
|
||||
LANGUAGE=en_US:en && \
|
||||
LC_ALL=en_US.UTF-8 && \
|
||||
PYTHONDONTWRITEBYTECODE=1 && \
|
||||
PYTHONUNBUFFERED=1 && \
|
||||
PATH=/home/wger/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \
|
||||
/bin/sh /home/wger/entrypoint.sh"
|
||||
|
||||
Reference in New Issue
Block a user