increase delay to wait mysql is started

This commit is contained in:
Jerome Sagnole 2017-10-09 23:29:50 +02:00
parent ff3c1c9cae
commit 118aaca94f
2 changed files with 6 additions and 2 deletions

View file

@ -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)

View file

@ -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