From 3d7c10046895536a86c6c2b9af75a9207f7c40a1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 17 Nov 2020 08:47:00 +0100 Subject: [PATCH] permission rework --- scripts/install | 3 +-- scripts/upgrade | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/install b/scripts/install index eb5d887..dfdcdff 100755 --- a/scripts/install +++ b/scripts/install @@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -# Exit if an error occurs during the execution of the script ynh_abort_if_errors #================================================= @@ -82,7 +81,7 @@ chown -R root: $final_path ynh_script_progression --message="Configuring SSOwat..." --weight=1 # Make app public if necessary or protect it -[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors" +[ $is_public -eq 1 ] || ynh_permission_update --permission "main" --add "visitors" #================================================= # RELOAD NGINX diff --git a/scripts/upgrade b/scripts/upgrade index c35815e..0a8f671 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,14 +94,6 @@ ynh_add_nginx_config # Set permissions on app files chown -R root: $final_path -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1 - -# Make app public if necessary or protect it -[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors" - #================================================= # RELOAD NGINX #=================================================