From ec68ea9c949c16f196a760ba8bbd9b6e5a26ac15 Mon Sep 17 00:00:00 2001 From: Gofannon Date: Sun, 21 Aug 2022 01:22:58 +0200 Subject: [PATCH] apply 'example_ynh' : move permission block --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 75c6b39..863b430 100755 --- a/scripts/install +++ b/scripts/install @@ -225,15 +225,16 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex #================================================= ynh_script_progression --message="Configuring permissions..." --weight=2 -# Create the "admin" permission and add the "admin_user" to it -ynh_permission_create --permission "admin" --allowed "$admin_user" - # Make app public if necessary if [ $is_public -eq 1 ] then ynh_permission_update --permission="main" --add="visitors" fi +# Create the "admin" permission and add the "admin_user" to it +# More users can be added to the group from the YunoHost webadmin +ynh_permission_create --permission "admin" --allowed "$admin_user" + #================================================= # RELOAD NGINX #=================================================