diff --git a/scripts/install b/scripts/install index 34f2bba..1fedfd4 100644 --- a/scripts/install +++ b/scripts/install @@ -26,8 +26,8 @@ ynh_abort_if_errors # Retrieve arguments domain=$YNH_APP_ARG_DOMAIN -#path_url=$YNH_APP_ARG_PATH -#port=$YNH_APP_ARG_PORT +path_url=$YNH_APP_ARG_PATH +is_public=$YNH_APP_ARG_IS_PUBLIC ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID @@ -201,8 +201,11 @@ cp -a ../conf/default.json /etc/onlyoffice/documentserver/default.json # SETUP SSOWAT #================================================= -# unprotected_uris allows SSO credentials to be passed anyway. -ynh_app_setting_set $app unprotected_uris "/" +# If app is public, add url to SSOWat conf as skipped_uris +if [ $is_public -eq 1 ]; then + # unprotected_uris allows SSO credentials to be passed anyway. + ynh_app_setting_set "$app" unprotected_uris "/" +fi # Reload services systemctl restart nginx