From a02fa83896670af66b1f79dfd76185e19087d05f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 13 Nov 2020 16:41:04 +0100 Subject: [PATCH] set permissions --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index af77c49..c53ce69 100755 --- a/scripts/install +++ b/scripts/install @@ -83,7 +83,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) # GRANT ACCESS RIGHT TO ADMIN #================================================= -yunohost app addaccess $app -u $admin +ynh_permission_update --permission "main" --add $admin --remove "all_users" #================================================= # MODIFY A CONFIG FILE diff --git a/scripts/upgrade b/scripts/upgrade index 8466a5d..b5955b5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -102,7 +102,7 @@ ynh_add_fpm_config # GRANT ACCESS RIGHT TO ADMIN #================================================= -yunohost app addaccess $app -u $admin +ynh_permission_update --permission "main" --add $admin --remove "all_users" #================================================= # MODIFY A CONFIG FILE