1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00
This commit is contained in:
liberodark 2018-11-19 15:59:24 +01:00
parent 1dd7b48225
commit 4a992b2acb

View file

@ -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
#=================================================
# 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 "/"
ynh_app_setting_set "$app" unprotected_uris "/"
fi
# Reload services
systemctl restart nginx