From 6010120f83085c8a512161ff41816d635c0638ca Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Tue, 5 Feb 2019 13:21:26 +0100 Subject: [PATCH] Update upgrade for importing without sso --- scripts/upgrade | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index ca00b43..6134482 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,6 +67,9 @@ fi #================================================= # Import Yunohost template #================================================= +#disable sso temporaly +ynh_app_setting_set $app unprotected_uris "/" +systemctl reload nginx zabbixFullpath=https://$domain$path_url localpath=$(find /var/cache/yunohost/ -name "Template_Yunohost.xml") sudoUserPpath=$(find /var/cache/yunohost/ -name "etc_sudoers.d_zabbix") @@ -212,8 +215,20 @@ 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 "/" + fi + systemctl reload nginx + yunohost app ssowatconf else ynh_print_info "No update from repo ! (Already up to date)" fi