19 lines
781 B
Bash
19 lines
781 B
Bash
dockerize -wait tcp://{{ MYSQL_HOST }}:{{ MYSQL_PORT }} -timeout 20s
|
|
|
|
echo "Loading settings $DJANGO_SETTINGS_MODULE"
|
|
|
|
./manage.py cms migrate
|
|
|
|
# Fix incorrect uploaded file path
|
|
if [ -d /openedx/data/uploads/ ]; then
|
|
if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
|
|
echo "Migrating CMS uploaded files to shared directory"
|
|
mv /openedx/data/uploads/* /openedx/media/
|
|
rm -rf /openedx/data/uploads/
|
|
fi
|
|
fi
|
|
|
|
# Create waffle switches to enable some features, if they have not been explicitly defined before
|
|
# Copy-paste of units in Studio (highly requested new feature, but defaults to off in Quince)
|
|
(./manage.py cms waffle_flag --list | grep contentstore.enable_copy_paste_units) || ./manage.py lms waffle_flag --create contentstore.enable_copy_paste_units --everyone
|