From 131ed10a163f075968e29034f135b476cf4496a4 Mon Sep 17 00:00:00 2001 From: Mickael Date: Mon, 25 Feb 2019 20:50:26 +0100 Subject: [PATCH] make same change as install : make private by default --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0462e30..b81e321 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -248,13 +248,13 @@ fi # RE-ENABLE SSOWAT #================================================= ynh_print_info "re-enable SSOWAT" -# Make app public if necessary -if [ $is_public -eq 1 ] +# Make app private if necessary +if [ $is_public -eq 0 ] then # unprotected_uris allows SSO credentials to be passed anyway. - ynh_app_setting_set "$app" unprotected_uris "/" + ynh_app_setting_delete "$app" unprotected_uris else - ynh_app_setting_set "$app" unprotected_uris "" + ynh_app_setting_set "$app" unprotected_uris "/" fi systemctl reload nginx