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:
parent
34e4e9fee7
commit
ee2c2612f9
1 changed files with 3 additions and 3 deletions
|
@ -74,10 +74,10 @@ curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
||||||
--form "enter=Sign+in" \
|
--form "enter=Sign+in" \
|
||||||
--form "name=Admin" \
|
--form "name=Admin" \
|
||||||
--form "password=zabbix" \
|
--form "password=zabbix" \
|
||||||
"${zabbixFullpath}index.php"
|
"$zabbixFullpath/index.php"
|
||||||
|
|
||||||
sid=$(curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
sid=$(curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
||||||
"${zabbixFullpath}/import.php" \
|
"$zabbixFullpath/import.php" \
|
||||||
| grep -Po 'name="sid" value="\K([a-z0-9]{16})(?=")' )
|
| grep -Po 'name="sid" value="\K([a-z0-9]{16})(?=")' )
|
||||||
|
|
||||||
curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
||||||
|
@ -105,7 +105,7 @@ curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
||||||
--form "backurl=templates.php" \
|
--form "backurl=templates.php" \
|
||||||
--form "form_refresh=1" \
|
--form "form_refresh=1" \
|
||||||
--form "sid=${sid}" \ \
|
--form "sid=${sid}" \ \
|
||||||
'https://${zabbixFullpath}conf.import.php?rules_preset=template'
|
"${zabbixFullpath}conf.import.php?rules_preset=template"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Disable default admin for security issue
|
# Disable default admin for security issue
|
||||||
|
|
Loading…
Add table
Reference in a new issue