Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set permissions on media directory

Scott Peshak0c27a600f853
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index 03fd9b965..eb558cdb3 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -73,7 +73,7 @@ RUN chmod o+w -R ~/db/ \
&& chmod g+w /home/wger/static/CACHE \
&& sed -i "/^MEDIA_ROOT/c\MEDIA_ROOT='\/home\/wger\/media'" settings.py \
&& python manage.py download-exercise-images \
- && chmod -R o+w ~/media \
+ && chmod -R g+w ~/media \
&& echo STATIC_ROOT=\'/home/wger/static\' >> settings.py \
&& python manage.py collectstatic --noinput