Give MariaDB more time to be ready.

pull/3/head
Cédric Bonhomme 2018-01-25 08:50:56 +01:00
parent e3d7a9f188
commit 676d7e5555
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ sudo apt-get install -y postfix > /dev/null 2>&1
echo "--- Installing MariaDB specific packages and settings ---" echo "--- Installing MariaDB specific packages and settings ---"
sudo apt-get install -y mariadb-client mariadb-server > /dev/null 2>&1 sudo apt-get install -y mariadb-client mariadb-server > /dev/null 2>&1
# Secure the MariaDB installation (especially by setting a strong root password) # 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 sudo apt-get install -y expect > /dev/null 2>&1
expect -f - <<-EOF expect -f - <<-EOF
set timeout 10 set timeout 10