diff --git a/scripts/install b/scripts/install index 1aa94c6..335a83f 100644 --- a/scripts/install +++ b/scripts/install @@ -197,9 +197,15 @@ yunohost service add $app --log "/var/log/$app/nodebb.log" # SETUP SSOWAT #================================================= -if [ $is_public -eq 1 ]; +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_app_setting_set $app skipped_uris "/" + # unprotected_uris allows SSO credentials to be passed anyway. + ynh_app_setting_set $app unprotected_uris "/" fi #=================================================