1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpsysinfo_ynh.git synced 2024-09-03 19:56:43 +02:00

Change choice type for public application

This commit is contained in:
inrepublica 2016-05-27 00:22:25 +02:00
parent d348aeb199
commit 2fc60a6e61
3 changed files with 6 additions and 6 deletions

View file

@ -52,12 +52,12 @@
},
{
"name": "is_public",
"type": "boolean",
"ask": {
"en": "Is it a public application?",
"fr": "Est-ce une application publique ?"
"en": "Is it a public WordPress site?",
"fr": "Est-ce un site public ?"
},
"default": false
"choices": ["Yes", "No"],
"default": "No"
}
]
}

View file

@ -42,7 +42,7 @@ sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
# If app is public, add url to SSOWat conf as skipped_uris
if [[ $is_public -eq 1 ]];
if [ "$is_public" = "Yes" ];
then
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set "$app" unprotected_uris "/"

View file

@ -33,7 +33,7 @@ sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
# If app is public, add url to SSOWat conf as skipped_uris
if [[ $is_public -eq 1 ]];
if [ "$is_public" = "Yes" ];
then
# See install script
ynh_app_setting_set "$app" unprotected_uris "/"