diff --git a/manifest.json b/manifest.json index 1e39a78..da2a797 100644 --- a/manifest.json +++ b/manifest.json @@ -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" } ] } diff --git a/scripts/install b/scripts/install index 18e5056..2233a5c 100644 --- a/scripts/install +++ b/scripts/install @@ -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 "/" diff --git a/scripts/upgrade b/scripts/upgrade index 6f64f86..9f16ca6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 "/"