mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-21 22:46:11 +00:00
increase delay to wait mysql is started
This commit is contained in:
parent
ff3c1c9cae
commit
118aaca94f
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue