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
|
||||
#=================================================
|
||||
#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
|
||||
|
|
Loading…
Add table
Reference in a new issue