mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-16 01:57:16 +00:00
6361b9ad58
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.
11 lines
154 B
Bash
Executable File
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/"
|