From a65fcafa6eefd8634a22bd59544b3b347354ef58 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 26 Mar 2017 23:17:43 +0200 Subject: [PATCH 1/2] fix ynh_mysql_connect --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 823d786..a2da5d8 100644 --- a/scripts/install +++ b/scripts/install @@ -144,7 +144,7 @@ YNH_CURL "&weblog_title=YunoBlog&user_name=$admin_wordpress&admin_password=$db_p WARNING echo -n "Please wait during Wordpress installation" for i in `seq 1 300` do # La boucle attend la fin de l'installation de wordpress Ou 5 minutes. - if ynh_mysql_connect_as $db_name $db_pwd $db_name -e "show tables" | grep -q "wp_options"; then + if ynh_mysql_connect_as $db_name $db_pwd $db_name <<< "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 WARNING echo -n "." From 356843afc670c9311b7ca13f830f3b121c8d60e4 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Wed, 29 Mar 2017 18:56:07 +0200 Subject: [PATCH 2/2] Fix install by user root --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index a2da5d8..5151b14 100644 --- a/scripts/install +++ b/scripts/install @@ -176,7 +176,7 @@ then # Active le multisite via wp-cli. sudo wget -nv https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O $final_path/wp-cli.phar - ALL_QUIET php $final_path/wp-cli.phar core multisite-convert --path=$final_path --base=$path_url/ + ALL_QUIET php $final_path/wp-cli.phar core multisite-convert --allow-root --path=$final_path --base=$path_url/ # Active le multisite wordpress sudo sed -i "s@//--MULTISITE2--define@define@g" $final_path/wp-config.php