Skip to content

Commit

Permalink
Change the permissions for the media folder
Browse files Browse the repository at this point in the history
This is necessary since the apache process doesn't own the folder but the images
are downloaded by the wger user.
  • Loading branch information
rolandgeider committed Mar 5, 2017
1 parent 4c2c662 commit 2da92e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/docker/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2da92e7

Please sign in to comment.