Browse Source

Mise à jour 4.7.2

pull/17/head
Maniack Crudelis 9 years ago
parent
commit
e73a7ee063
  1. 10
      scripts/install
  2. BIN
      sources/ajouts/wp-cli.phar
  3. 2
      sources/source_md5
  4. 2
      sources/source_url

10
scripts/install

@ -4,8 +4,8 @@ source .fonctions # Charge les fonctions génériques habituellement utilisées
CLEAN_SETUP () { CLEAN_SETUP () {
# Nettoyage des résidus d'installation non pris en charge par le script remove. # 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. 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 # 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 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 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 sudo sed -i "s@//--MULTISITE1--define@define@g" $final_path/wp-config.php
# Active le multisite via wp-cli. # 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 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!" # 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 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... # wp-cli me semble un peu trop permissif... Il a terminé son travail...
sudo rm -f $final_path/wp-cli.phar sudo rm -f $final_path/wp-cli.phar

BIN
sources/ajouts/wp-cli.phar

2
sources/source_md5

@ -1 +1 @@
056da124260ed5b4465ec1fb2f9b7155 wordpress.tar.gz
17f9fe2fa6d14eba86aad152059b5afd wordpress.tar.gz

2
sources/source_url

@ -1 +1 @@
https://wordpress.org/wordpress-4.5.2.tar.gz
https://wordpress.org/wordpress-4.7.2.tar.gz
Loading…
Cancel
Save