summaryrefslogtreecommitdiffstats
path: root/lcm/docker
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/docker')
-rwxr-xr-xlcm/docker/instance_init.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index ecf9e86e..03c10a80 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/docker/instance_init.sh
@@ -10,6 +10,11 @@ function start_redis_server {
function start_mysql {
service mysql start
+ # Wait for mysql to initialize; Set mysql root password
+ for i in {1..10}; do
+ sleep $i
+ bash /usr/bin/mysqladmin -u root password $MYSQL_ROOT_PASSWORD &> /dev/null && break
+ done
}
function create_database {