mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Update Dockerfile
This commit is contained in:
@@ -32,11 +32,11 @@ USER root
|
|||||||
ENV FROM_EMAIL='wger Workout Manager <wger@example.com>'
|
ENV FROM_EMAIL='wger Workout Manager <wger@example.com>'
|
||||||
ENV LOCATION=/data
|
ENV LOCATION=/data
|
||||||
|
|
||||||
RUN sed -i "1a python3 manage.py migrate || true" /home/wger/entrypoint.sh \
|
#RUN sed -i "1a python3 manage.py migrate || true" /home/wger/entrypoint.sh \
|
||||||
&& sed -i "1a ln -s $LOCATION/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \
|
# && sed -i "1a ln -s $LOCATION/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \
|
||||||
# && sed -i "1a if [ -f /data/database.sqlite ]; then mv -f /data/database.sqlite $LOCATION/database.sqlite; fi" /home/wger/entrypoint.sh \
|
# && sed -i "1a if [ -f /data/database.sqlite ]; then mv -f /data/database.sqlite $LOCATION/database.sqlite; fi" /home/wger/entrypoint.sh \
|
||||||
&& sed -i "1a rm /home/wger/db/database.sqlite &>/dev/null || true" /home/wger/entrypoint.sh \
|
# && sed -i "1a rm /home/wger/db/database.sqlite &>/dev/null || true" /home/wger/entrypoint.sh \
|
||||||
&& sed -i "1a mkdir -p $LOCATION && touch $LOCATION/database.sqlite || true && chown -R wger $LOCATION || true && chmod -R 777 $LOCATION || true" /home/wger/entrypoint.sh
|
# && sed -i "1a mkdir -p $LOCATION && touch $LOCATION/database.sqlite || true && chown -R wger $LOCATION || true && chmod -R 777 $LOCATION || true" /home/wger/entrypoint.sh
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 3 Install apps #
|
# 3 Install apps #
|
||||||
|
|||||||
Reference in New Issue
Block a user