Browse Source

Plus de temps pour l'install curl

pull/13/head
Maniack Crudelis 10 years ago
parent
commit
7bcd3adc58
  1. 5
      scripts/install

5
scripts/install

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

Loading…
Cancel
Save