diff --git a/scripts/install b/scripts/install index b121366..e1b4e36 100644 --- a/scripts/install +++ b/scripts/install @@ -4,8 +4,8 @@ source .fonctions # Charge les fonctions génériques habituellement utilisées CLEAN_SETUP () { # Nettoyage des résidus d'installation non pris en charge par le script remove. -# Pas de nettoyage supplémentaire nécessaire ici... - echo "" + # Clean hosts + sudo sed -i '/#WORDPRESS/d' /etc/hosts } TRAP_ON # Active trap pour arrêter le script si une erreur est détectée. @@ -101,6 +101,8 @@ sudo yunohost app ssowatconf # Wordpress installation +echo -e "127.0.0.1 $domain #WORDPRESS" | sudo tee -a /etc/hosts +sleep 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 echo -n "Please wait during Wordpress installation" >&2 @@ -132,6 +134,7 @@ then sudo sed -i "s@//--MULTISITE1--define@define@g" $final_path/wp-config.php # 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 php $final_path/wp-cli.phar core multisite-convert --path=$final_path --base=$path/ > /dev/null 2>&1 # echo "The 2 warnings of php about \"Permission denied\" on wp-config.php are normal. The install script writing into this file, not wp-cli!" @@ -181,5 +184,8 @@ fi sudo service nginx reload +# Clean hosts +sudo sed -i '/#WORDPRESS/d' /etc/hosts + # wp-cli me semble un peu trop permissif... Il a terminé son travail... sudo rm -f $final_path/wp-cli.phar diff --git a/sources/ajouts/wp-cli.phar b/sources/ajouts/wp-cli.phar deleted file mode 100644 index b809026..0000000 Binary files a/sources/ajouts/wp-cli.phar and /dev/null differ diff --git a/sources/source_md5 b/sources/source_md5 index dc46bab..99db23a 100644 --- a/sources/source_md5 +++ b/sources/source_md5 @@ -1 +1 @@ -056da124260ed5b4465ec1fb2f9b7155 wordpress.tar.gz \ No newline at end of file +17f9fe2fa6d14eba86aad152059b5afd wordpress.tar.gz diff --git a/sources/source_url b/sources/source_url index aa77cda..f88ac0b 100644 --- a/sources/source_url +++ b/sources/source_url @@ -1 +1 @@ -https://wordpress.org/wordpress-4.5.2.tar.gz \ No newline at end of file +https://wordpress.org/wordpress-4.7.2.tar.gz