diff --git a/conf/app.src b/conf/app.src index 278d60f..96acb1a 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://wordpress.org/wordpress-4.7.2.tar.gz -SOURCE_SUM=17f9fe2fa6d14eba86aad152059b5afd +SOURCE_URL=https://wordpress.org/wordpress-4.8.tar.gz +SOURCE_SUM=b91248a7220a7fb1ca293c3a0ec8db6c SOURCE_SUM_PRG=md5sum ARCH_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 5969983..ba2897b 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "en": "Create a beautiful blog or website easily", "fr": "Logiciel de création de blog ou de site Web" }, - "version": "4.7.2", + "version": "4.8", "url": "https://wordpress.org/", "license": "GPLv2", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 059a041..ed6184f 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -100,6 +100,10 @@ QUIET () { # Redirige la sortie standard dans /dev/null $@ > /dev/null } +ALL_QUIET () { # Redirige la sortie standard et d'erreur dans /dev/null + $@ > /dev/null 2>&1 +} + #================================================= # BACKUP #================================================= diff --git a/scripts/install b/scripts/install index 6b6e9ff..e54a52e 100644 --- a/scripts/install +++ b/scripts/install @@ -154,6 +154,15 @@ do # La boucle attend la fin de l'installation de wordpress Ou 5 minutes. WARNING echo -n "." sleep 1 done +WARNING echo "" + +#================================================= +# INSTALL WORDPRESS' PLUGINS +#================================================= + +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 --allow-root plugin install simple-ldap-login --path=$final_path +php $final_path/wp-cli.phar --allow-root plugin install http-authentication --path=$final_path #================================================= # LOAD SQL CONFIG @@ -179,7 +188,6 @@ then ynh_replace_string "//--MULTISITE1--define" "define " $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 ALL_QUIET php $final_path/wp-cli.phar core multisite-convert --allow-root --path=$final_path --base=$path_url/ # Active le multisite wordpress