mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update Dockerfile
This commit is contained in:
@@ -23,8 +23,10 @@ FROM wger/devel:latest
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
USER root
|
||||
|
||||
RUN sed -i "1a ln -s /data/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \
|
||||
&& sed -i "1a rm /home/wger/db/database.sqlite || true" /home/wger/entrypoint.sh \
|
||||
&& sed -i "1a rm /home/wger/db/database.sqlite &>/dev/null || true" /home/wger/entrypoint.sh \
|
||||
&& sed -i "1a touch /data/database.sqlite && chown -R wger /data && chmod -R 777 /data" /home/wger/entrypoint.sh
|
||||
|
||||
##################
|
||||
|
||||
Reference in New Issue
Block a user