From aaf9b4f3369b7a2adc90643b204e24c19dad75ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 3 Aug 2021 00:11:34 +0200 Subject: [PATCH] Testing (#56) * Fix upgrade --- README.md | 2 +- README_fr.md | 2 +- manifest.json | 2 +- scripts/upgrade | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6a5a373..95b4275 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Open source analytics platform for measuring Web statistics -**Shipped version:** 4.4.1~ynh1 +**Shipped version:** 4.4.1~ynh2 **Demo:** https://demo.matomo.org diff --git a/README_fr.md b/README_fr.md index 0155e85..ca8ae67 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Plateforme d'analyse open source de mesure de statistiques Web -**Version incluse :** 4.4.1~ynh1 +**Version incluse :** 4.4.1~ynh2 **Démo :** https://demo.matomo.org diff --git a/manifest.json b/manifest.json index 33347ee..db8d93b 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Open source analytics platform for measuring Web statistics", "fr": "Plateforme d'analyse open source de mesure de statistiques Web" }, - "version": "4.4.1~ynh1", + "version": "4.4.1~ynh2", "url": "https://matomo.org", "upstream": { "license": "GPL-3.0-or-later", diff --git a/scripts/upgrade b/scripts/upgrade index 03363d7..05adba4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -110,14 +110,14 @@ then # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" + chmod 750 "$final_path" + chmod -R o-rwx "$final_path" + chown -R $app:www-data "$final_path" + ynh_exec_as $app php${phpversion} $final_path/console core:update -n fi fi -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # NGINX CONFIGURATION #=================================================