6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-16 01:57:16 +00:00
tutor/edxapp/wait-for-greenlight.sh
Régis Behmo 6361b9ad58 Fix SQL race condition
When running "wait-for-mysql.sh", the "echo 'show tables' | manage.py
dbshell" command is always considered a success, even if the database is
unreachable ($? == 0). So we replace this command by a global system
check.

This closes #3.
2018-02-10 18:38:17 +01:00

11 lines
154 B
Bash
Executable File

#!/bin/bash
echo "Checking system..."
until ./manage.py lms --settings=production check
do
printf "."
sleep 1
done
echo -e "\nSystem is ready \\o/"