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:
parent
255191c23c
commit
d38004c320
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ source /usr/share/yunohost/helpers
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path=$YNH_APP_ARG_PATH
|
path=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_PUBLIC_SITE
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
port=9001
|
port=9001
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
|
@ -91,7 +91,7 @@ fi
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
# If app is public, add url to SSOWat conf as skipped_uris
|
# If app is public, add url to SSOWat conf as skipped_uris
|
||||||
if [[ $is_public -eq 1 ]]; then
|
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 "/"
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ domain=$(ynh_app_setting_get "$app" domain)
|
||||||
path=$(ynh_app_setting_get "$app" path)
|
path=$(ynh_app_setting_get "$app" path)
|
||||||
dbuser=$(ynh_app_setting_get "$app" dbuser)
|
dbuser=$(ynh_app_setting_get "$app" dbuser)
|
||||||
dbname=$(ynh_app_setting_get "$app" dbname)
|
dbname=$(ynh_app_setting_get "$app" dbname)
|
||||||
|
is_public=$(ynh_app_setting_get "$app" is_public)
|
||||||
|
|
||||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue