Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Change the permissions for the media folder

Roland Geider2da92e7d2281
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index b387dd370..a175446d3 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -52,9 +52,9 @@ RUN chmod o+w -R ~/db/ \
&& . /home/wger/venv/bin/activate \
&& mkdir ~/static \
&& mkdir ~/media \
- && chmod o+w ~/media \
&& sed -i "/^MEDIA_ROOT/c\MEDIA_ROOT='\/home\/wger\/media'" settings.py \
&& python manage.py download-exercise-images \
+ && chmod -R o+w ~/media \
&& echo STATIC_ROOT=\'/home/wger/static\' >> settings.py \
&& python manage.py collectstatic --noinput