1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00

fixed public site argument

This commit is contained in:
Bachir Soussi Chiadmi 2016-07-11 09:04:42 +02:00
parent 255191c23c
commit d38004c320
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@ source /usr/share/yunohost/helpers
# Retrieve arguments
domain=$YNH_APP_ARG_DOMAIN
path=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_PUBLIC_SITE
is_public=$YNH_APP_ARG_IS_PUBLIC
port=9001
# Check domain/path availability
@ -91,7 +91,7 @@ fi
sudo service nginx reload
# 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.
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set "$app" unprotected_uris "/"
fi

View file

@ -10,6 +10,7 @@ domain=$(ynh_app_setting_get "$app" domain)
path=$(ynh_app_setting_get "$app" path)
dbuser=$(ynh_app_setting_get "$app" dbuser)
dbname=$(ynh_app_setting_get "$app" dbname)
is_public=$(ynh_app_setting_get "$app" is_public)
root_pwd=$(sudo cat /etc/yunohost/mysql)