Files
wger/extras/docker/apache/entrypoint.sh
Scott Peshak 9f1abb125a Move image download to container startup
Optional operation controlled by the DOWNLOAD_IMGS environmental
variable
2020-06-13 08:50:33 -05:00

16 lines
330 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
if [ "${USE_S3}" = "TRUE" ]; then
/home/wger/venvwrapper collectstatic --no-input
/home/wger/venvwrapper compress --force
fi
/usr/sbin/apache2ctl -D FOREGROUND