1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

Update upgrade

This commit is contained in:
Mickael-Martin 2019-01-17 13:16:53 +01:00
parent 530e986fdc
commit e5fe78512c

View file

@ -71,11 +71,10 @@ zabbixFullpath=https://$domain/$path_url
localpath=$(find /var/cache/yunohost/ -name "Template_Yunohost.xml")
curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
--form "enter=Enter" \
--form "enter=Sign+in" \
--form "name=Admin" \
--form "password=zabbix" \
'$zabbixFullpath/index.php?login=1'
# 0 - update , 1 - skip, 0 - add
'$zabbixFullpath/index.php'
sid=$(curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
"$zabbixFullpath/conf.import.php" \
@ -109,7 +108,7 @@ curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
--form "backurl=templates.php" \
--form "form_refresh=1" \
--form "sid=${sid}" \ \
'https://$zabbixFullpath/zabbix/conf.import.php?rules_preset=template'
'https://$zabbixFullpath/conf.import.php?rules_preset=template'
#=================================================
# Disable default admin for security issue