From 676d7e5555c6f029058ead945b822e98d523576b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 25 Jan 2018 08:50:56 +0100 Subject: [PATCH] Give MariaDB more time to be ready. --- scripts/bootstrap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index fe59df9..4cc0fa0 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -64,7 +64,9 @@ sudo apt-get install -y postfix > /dev/null 2>&1 echo "--- Installing MariaDB specific packages and settings ---" sudo apt-get install -y mariadb-client mariadb-server > /dev/null 2>&1 # Secure the MariaDB installation (especially by setting a strong root password) -sleep 7 # give some time to the DB to launch... +sleep 10 # give some time to the DB to launch... +sudo systemctl restart mariadb.service +sleep 10 sudo apt-get install -y expect > /dev/null 2>&1 expect -f - <<-EOF set timeout 10