Browse Source

Upgrade 4.8

pull/26/head
Maniack Crudelis 9 years ago
parent
commit
cbb74263e3
  1. 4
      conf/app.src
  2. 2
      manifest.json
  3. 4
      scripts/_common.sh
  4. 10
      scripts/install

4
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 SOURCE_SUM_PRG=md5sum
ARCH_FORMAT=tar.gz ARCH_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

2
manifest.json

@ -9,7 +9,7 @@
"en": "Create a beautiful blog or website easily", "en": "Create a beautiful blog or website easily",
"fr": "Logiciel de création de blog ou de site Web" "fr": "Logiciel de création de blog ou de site Web"
}, },
"version": "4.7.2",
"version": "4.8",
"url": "https://wordpress.org/", "url": "https://wordpress.org/",
"license": "GPLv2", "license": "GPLv2",
"maintainer": { "maintainer": {

4
scripts/_common.sh

@ -100,6 +100,10 @@ QUIET () { # Redirige la sortie standard dans /dev/null
$@ > /dev/null $@ > /dev/null
} }
ALL_QUIET () { # Redirige la sortie standard et d'erreur dans /dev/null
$@ > /dev/null 2>&1
}
#================================================= #=================================================
# BACKUP # BACKUP
#================================================= #=================================================

10
scripts/install

@ -154,6 +154,15 @@ do # La boucle attend la fin de l'installation de wordpress Ou 5 minutes.
WARNING echo -n "." WARNING echo -n "."
sleep 1 sleep 1
done 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 # LOAD SQL CONFIG
@ -179,7 +188,6 @@ then
ynh_replace_string "//--MULTISITE1--define" "define " $final_path/wp-config.php ynh_replace_string "//--MULTISITE1--define" "define " $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
ALL_QUIET php $final_path/wp-cli.phar core multisite-convert --allow-root --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 # Active le multisite wordpress

Loading…
Cancel
Save