From 7597b1b21ff4617d450c712abf2db3718de6ff5a Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 1 May 2017 16:36:17 +0200 Subject: [PATCH] [fix] type booleen upgrade script --- scripts/upgrade | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c63dc9d..362cbd0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,8 +49,12 @@ ynh_nginx_config ynh_fpm_config # Set ssowat config -if [[ $is_public -eq 1 ]]; then - ynh_app_setting_set "$app" unprotected_uris "/" +if [ "$is_public" = "Yes" ]; then + ynh_app_setting_set $app is_public 1 # Fixe is_public en booléen + is_public=1 +elif [ "$is_public" = "No" ]; then + ynh_app_setting_set $app is_public 0 + is_public=0 fi # Reload Nginx