mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
test
This commit is contained in:
@@ -23,4 +23,22 @@ ln -s "$LOCATION"/database.sqlite /home/wger/db
|
||||
python3 manage.py migrate || true
|
||||
|
||||
echo "Launch app"
|
||||
su -m wger -c "cd /home/wger/src && export FROM_EMAIL='wger Workout Manager <wger@example.com>' && exec /home/wger/entrypoint.sh"
|
||||
su -m wger -c "\
|
||||
DOCKER_DIR=./extras/docker/development && \
|
||||
/bin/sh -c mkdir ~/media && \
|
||||
pip3 install -e . && \
|
||||
mkdir ~/static && \
|
||||
mkdir ~/db/ && \
|
||||
if [ -f .env ]; then export $(echo $(cat .env | sed 's/#.*//g'| xargs) | envsubst); fi && \
|
||||
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
|
||||
cd /home/wger/src && \
|
||||
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