File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ basedir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../" && pwd ) "
5+
6+ if [[ ! -z " $MOODLE_DOCKER_BROWSER " ]] && [[ " $MOODLE_DOCKER_BROWSER " == " chrome" ]] && [[ ! -z " $MOODLE_MOBILE_VERSION " ]];
7+ then
8+ until $basedir /bin/moodle-docker-compose logs mobileapp | grep -q ' dev server running: ' ;
9+ do
10+ echo ' Waiting for Moodle app to come up...'
11+ sleep 15
12+ done
13+ fi
Original file line number Diff line number Diff line change @@ -26,5 +26,7 @@ echo "Starting up container"
2626$basedir /bin/moodle-docker-compose up -d
2727echo " Waiting for DB to come up"
2828$basedir /bin/moodle-docker-wait-for-db
29+ echo " Waiting for Moodle app to come up"
30+ $basedir /bin/moodle-docker-wait-for-app
2931echo " Running: $initcmd "
3032$basedir /$initcmd
You can’t perform that action at this time.
0 commit comments