From 118aaca94f2ca084c26126d2ad0961303eaa00c7 Mon Sep 17 00:00:00 2001 From: Jerome Sagnole Date: Mon, 9 Oct 2017 23:29:50 +0200 Subject: [PATCH] increase delay to wait mysql is started --- .../server/debian/common/servercontainer_configure_mysql.sh | 4 +++- .../server/debian/common/servercontainer_configure_world.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/docker/server/debian/common/servercontainer_configure_mysql.sh b/dist/docker/server/debian/common/servercontainer_configure_mysql.sh index 240383f13..f0c581084 100755 --- a/dist/docker/server/debian/common/servercontainer_configure_mysql.sh +++ b/dist/docker/server/debian/common/servercontainer_configure_mysql.sh @@ -109,13 +109,15 @@ msg_debug "Start database" mysql_pid=$! # Wait mysql start -msg_debug "Check database is started" +msg_info "Check database is started" +sleep 1 until /usr/bin/mysqladmin ping >/dev/null 2>&1 do echo -n "." sleep 1 done echo "" +sleep 1 #################################### # Update root password (mysql) diff --git a/dist/docker/server/debian/common/servercontainer_configure_world.sh b/dist/docker/server/debian/common/servercontainer_configure_world.sh index a66236f31..223a621ae 100755 --- a/dist/docker/server/debian/common/servercontainer_configure_world.sh +++ b/dist/docker/server/debian/common/servercontainer_configure_world.sh @@ -101,13 +101,15 @@ msg_debug "Start mysql" sudo service mysql start || exit 2 # Wait mysql start -msg_debug "Check database is started" +msg_info "Check database is started" +sleep 1 until /usr/bin/mysqladmin ping >/dev/null 2>&1 do echo -n "." sleep 1 done echo "" +sleep 1 msg_debug "start apache" sudo service apache2 start || exit 2