mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +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=$!
|
mysql_pid=$!
|
||||||
|
|
||||||
# Wait mysql start
|
# 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
|
until /usr/bin/mysqladmin ping >/dev/null 2>&1
|
||||||
do
|
do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
sleep 1
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# Update root password (mysql)
|
# Update root password (mysql)
|
||||||
|
|
|
@ -101,13 +101,15 @@ msg_debug "Start mysql"
|
||||||
sudo service mysql start || exit 2
|
sudo service mysql start || exit 2
|
||||||
|
|
||||||
# Wait mysql start
|
# 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
|
until /usr/bin/mysqladmin ping >/dev/null 2>&1
|
||||||
do
|
do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
sleep 1
|
||||||
|
|
||||||
msg_debug "start apache"
|
msg_debug "start apache"
|
||||||
sudo service apache2 start || exit 2
|
sudo service apache2 start || exit 2
|
||||||
|
|
Loading…
Reference in a new issue