Files
wger/extras/docker/apache/entrypoint.sh
Roland Geider 65decd0b82 Change owner of static folder
This is perhaps not the most elegant solution, but works
2020-07-27 21:34:38 +02:00

15 lines
334 B
Bash
Executable File

#!/bin/sh
/home/wger/venvwrapper migrate
if [ "${DOWNLOAD_IMGS}" = "TRUE" ]; then
/home/wger/venvwrapper download-exercise-images
chmod -R g+w ~wger/media
fi
/home/wger/venvwrapper collectstatic --no-input
/home/wger/venvwrapper compress --force
chown www-data:www-data -R /home/wger/static
/usr/sbin/apache2ctl -D FOREGROUND