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

Merge pull request #13 from maniackcrudelis/master

Plus de temps pour l'install curl
This commit is contained in:
Maniack Crudelis 2016-10-14 00:14:36 +02:00 committed by GitHub
commit 034fcde60d

View file

@ -103,8 +103,9 @@ sudo yunohost app ssowatconf
# Wordpress installation # 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 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` echo -n "Please wait during Wordpress installation" >&2
do # La boucle attend la fin de l'installation de wordpress Ou 30 secondes. 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 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. break # Si la table wp_options est trouvée, l'installation de wordpress est terminée. Quitte la boucle.
fi fi