From 7f3a80a9d65d13bcd5e17478ef9f8b58e1ff8ceb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 4 Jan 2021 14:12:40 +0100 Subject: [PATCH] Update install --- scripts/install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 015626a..2cc4e08 100644 --- a/scripts/install +++ b/scripts/install @@ -180,10 +180,14 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --l #================================================= ynh_script_progression --message="Configuring SSOwat..." -# Make app public if necessary or protect it +if [ $is_public -eq 0 ] +then # Remove the public access + ynh_app_setting_delete $app skipped_uris +fi +# Make app public if necessary if [ $is_public -eq 1 ] then - ynh_permission_update --permission "main" --add "visitors" + ynh_app_setting_set --app=$app --key=skipped_uris --value="/" fi #=================================================