mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Corrections
This commit is contained in:
parent
968b953ba4
commit
2925d5ccc0
3 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,6 @@ https://wordpress.org/
|
|||
Si l'option multisite est activée, le script installe le paquet *php5-cli*.
|
||||
|
||||
**Mise à jour du package:**
|
||||
sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/wordpress_ynh
|
||||
sudo yunohost app upgrade --verbose -u https://github.com/YunoHost-Apps/wordpress_ynh wordpress
|
||||
|
||||
**Multi-utilisateur:** Oui, avec support ldap.
|
||||
|
|
|
@ -45,7 +45,7 @@ sudo yunohost user list --json | grep -q "\"username\": \"$admin_wordpress\"" ||
|
|||
if [ "${path:0:1}" != "/" ]; then # Si le premier caractère n'est pas un /
|
||||
path="/$path" # Ajoute un / en début de path
|
||||
fi
|
||||
if [ "${path:${#path}-1}" == "/" ]; then # Si le dernier caractère est un /
|
||||
if [ "${path:${#path}-1}" == "/" ] && [ ${#path} -gt 1 ]; then # Si le dernier caractère est un / et que ce n'est pas le seul caractère.
|
||||
path="${path:0:${#path}-1}" # Supprime le dernier caractère
|
||||
fi
|
||||
|
||||
|
|
|
@ -74,6 +74,8 @@ else
|
|||
fi
|
||||
fi
|
||||
sudo yunohost app setting $app multisite -v $multisite
|
||||
# Réenregistre la somme de contrôle du fichier de config.
|
||||
sudo yunohost app setting $app wp-config.php_file_md5 -v $(md5sum "$final_path/wp-config.php" | cut -d' ' -f1)
|
||||
|
||||
# Configure les droits d'accès au fichiers
|
||||
# Les fichiers appartiennent à www-data, pour permettre les mises à jour.
|
||||
|
|
Loading…
Add table
Reference in a new issue