mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
Update upgrade for importing without sso
This commit is contained in:
parent
563e034d3f
commit
6010120f83
1 changed files with 16 additions and 1 deletions
|
@ -67,6 +67,9 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# Import Yunohost template
|
# Import Yunohost template
|
||||||
#=================================================
|
#=================================================
|
||||||
|
#disable sso temporaly
|
||||||
|
ynh_app_setting_set $app unprotected_uris "/"
|
||||||
|
systemctl reload nginx
|
||||||
zabbixFullpath=https://$domain$path_url
|
zabbixFullpath=https://$domain$path_url
|
||||||
localpath=$(find /var/cache/yunohost/ -name "Template_Yunohost.xml")
|
localpath=$(find /var/cache/yunohost/ -name "Template_Yunohost.xml")
|
||||||
sudoUserPpath=$(find /var/cache/yunohost/ -name "etc_sudoers.d_zabbix")
|
sudoUserPpath=$(find /var/cache/yunohost/ -name "etc_sudoers.d_zabbix")
|
||||||
|
@ -213,7 +216,19 @@ then
|
||||||
|
|
||||||
rm -fr /tmp/zabbix*
|
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
|
systemctl reload nginx
|
||||||
|
yunohost app ssowatconf
|
||||||
else
|
else
|
||||||
ynh_print_info "No update from repo ! (Already up to date)"
|
ynh_print_info "No update from repo ! (Already up to date)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue