From a22e478d36bd0c51b8712b6e37f33471eddd0799 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 31 May 2021 19:38:29 +0200 Subject: [PATCH] No is_public anymore, use ynh_permission_has_user --permission=main --user=visitors --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7f3e463..315e1c5 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -168,7 +168,9 @@ popd # UPDATE A CONFIG FILE #================================================= ynh_script_progression --message="Updating a configuration file..." -if [ $is_public -eq 1 ]; then + +if ynh_permission_has_user --permission=main --user=visitors +then announce="true" else announce="fase"