From 6d9b9aaf76df52d8f26f3e4f64b1dcecca3d9aaa Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Tue, 5 Feb 2019 13:24:45 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e09694c..b8af9f6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -217,25 +217,26 @@ then cp -pf /tmp/zabbix.conf.php /usr/share/zabbix/conf/ rm -fr /tmp/zabbix* - - #================================================= - # SETUP SSOWAT - #================================================= - - # Make app public if necessary - if [ $is_public -eq 1 ] - then - # unprotected_uris allows SSO credentials to be passed anyway. - ynh_app_setting_set $app unprotected_uris "/" - else - ynh_app_setting_set $app unprotected_uris "" - fi - - systemctl reload nginx - yunohost app ssowatconf + else ynh_print_info "No update from repo ! (Already up to date)" fi else ynh_print_info "No update from repo ! (Trusted version)" fi + +#================================================= +# RE-ENABLE SSOWAT +#================================================= + +# Make app public if necessary +if [ $is_public -eq 1 ] +then + # unprotected_uris allows SSO credentials to be passed anyway. + ynh_app_setting_set $app unprotected_uris "/" +else + ynh_app_setting_set $app unprotected_uris "" +fi + +systemctl reload nginx +yunohost app ssowatconf \ No newline at end of file