7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-01 22:00:48 +00:00
tutor/edxapp/wait-for-mysql.sh
2018-01-29 17:21:32 +01:00

11 lines
186 B
Bash
Executable File

#!/bin/bash
echo "Waiting for mysql database"
until echo "show tables;" | ./manage.py lms --settings=production dbshell
do
printf "."
sleep 1
done
echo -e "\nmysql database ready"