Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix cache permissions... again

Scott Peshak65b94e3428c9
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index b812d4a56..03fd9b965 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -33,7 +33,8 @@ ADD wger.conf /etc/apache2/sites-available/
RUN a2dissite 000-default.conf \
&& a2ensite wger \
&& echo "ServerName localhost" >> /etc/apache2/conf-available/fqdn.conf \
- && a2enconf fqdn
+ && a2enconf fqdn \
+ && usermod -G wger www-data
# Configure cron
ADD crontab /etc/cron.d/wger
@@ -69,6 +70,7 @@ RUN chmod o+w -R ~/db/ \
&& . /home/wger/venv/bin/activate \
&& mkdir -p ~/static/CACHE ~/media \
&& ln -s /home/wger/static/CACHE /home/wger/src/CACHE \
+ && 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 \