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