1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Plus de temps pour l'install curl

This commit is contained in:
Maniack Crudelis 2016-10-14 00:10:07 +02:00
parent a8e6b5be10
commit 7bcd3adc58

View file

@ -103,8 +103,9 @@ sudo yunohost app ssowatconf
# Wordpress installation
curl -kL -H "Host: $domain" --data "&weblog_title=YunoBlog&user_name=$admin_wordpress&admin_password=$db_pwd&admin_password2=$db_pwd&admin_email=$admin_wordpress@$domain&language=$language&Submit=Install+WordPress" https://localhost$path/wp-admin/install.php?step=2 > /dev/null 2>&1
for i in `seq 1 30`
do # La boucle attend la fin de l'installation de wordpress Ou 30 secondes.
echo -n "Please wait during Wordpress installation" >&2
for i in `seq 1 300`
do # La boucle attend la fin de l'installation de wordpress Ou 5 minutes.
if mysql --debug-check -u $db_user -p$db_pwd $db_user -e "show tables" | grep -q "wp_options"; then
break # Si la table wp_options est trouvée, l'installation de wordpress est terminée. Quitte la boucle.
fi