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 #=================================================