mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-10 10:41:28 +00:00
telegraf: Fix update and hash logic (#2655)
This commit is contained in:
parent
4d34f4f6a3
commit
bd03bac9a7
@ -16,19 +16,18 @@
|
|||||||
"TELEGRAF_CONFIG_PATH": "$persist_dir/telegraf.conf"
|
"TELEGRAF_CONFIG_PATH": "$persist_dir/telegraf.conf"
|
||||||
},
|
},
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://portal.influxdata.com/downloads",
|
"github": "https://github.com/influxdata/telegraf"
|
||||||
"regex": ">Telegraf v([\\d.]+)<"
|
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://dl.influxdata.com/telegraf/releases/telegraf-$version_windows_amd64.zip",
|
"url": "https://dl.influxdata.com/telegraf/releases/telegraf-$version_windows_amd64.zip",
|
||||||
"extract_dir": "telegraf-$version"
|
"extract_dir": "telegraf-$version",
|
||||||
}
|
|
||||||
},
|
|
||||||
"hash": {
|
"hash": {
|
||||||
"url": "https://portal.influxdata.com/downloads/",
|
"url": "https://github.com/influxdata/telegraf/releases/tag/v$version",
|
||||||
"regex": "(?sm)Windows Binaries.*?>$sha256</.*?wget $url"
|
"regex": "(?s)<td>amd64.+?<td>Windows.+?<code>$sha256</code>"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user