mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Upgrade 4.8
This commit is contained in:
parent
b83d811a9d
commit
cbb74263e3
4 changed files with 16 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://wordpress.org/wordpress-4.7.2.tar.gz
|
SOURCE_URL=https://wordpress.org/wordpress-4.8.tar.gz
|
||||||
SOURCE_SUM=17f9fe2fa6d14eba86aad152059b5afd
|
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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue