Update run.sh

This commit is contained in:
Alexandre
2022-07-10 09:13:40 +02:00
committed by GitHub
parent b4fb254403
commit dff291963d

View File

@@ -19,21 +19,4 @@ chown -R wger:wger "/home/wger"
chmod -R 777 "$LOCATION"
echo "Launch app"
su -l wger -c "\
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 && \
DOCKER_DIR=./extras/docker/development && \
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
/bin/sh /home/wger/entrypoint.sh"
su wger -c "/bin/sh /home/wger/entrypoint.sh"