From 4746906a88d68d0d4d241f575e1a70d8a1472efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 1 Mar 2021 16:20:58 +0100 Subject: [PATCH] Testing (#64) * Fix upgrade issue (#63) --- manifest.json | 2 +- scripts/upgrade | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 41b7fc6..7c51100 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Open source photo gallery for the web", "fr": "Galerie de photos open source pour le web" }, - "version": "11.3.0~ynh1", + "version": "11.3.0~ynh2", "url": "http://piwigo.org", "license": "GPL-2.0", "maintainer": { diff --git a/scripts/upgrade b/scripts/upgrade index 180ecca..d840c9a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -192,10 +192,7 @@ chmod 755 -R $final_path/_data ynh_script_progression --message="Upgrading Piwigo with cURL..." --weight=6 # Set the app as temporarily public for cURL call -ynh_permission_has_user --permission="main" --user="visitors" -contains_visitors=$? - -if [ $contains_visitors -eq 1 ] +if ! ynh_permission_has_user --permission="main" --user="visitors" then ynh_permission_update --permission="main" --add="visitors" fi