mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-09 18:21:22 +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"
|
||||
},
|
||||
"checkver": {
|
||||
"url": "https://portal.influxdata.com/downloads",
|
||||
"regex": ">Telegraf v([\\d.]+)<"
|
||||
"github": "https://github.com/influxdata/telegraf"
|
||||
},
|
||||
"autoupdate": {
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://dl.influxdata.com/telegraf/releases/telegraf-$version_windows_amd64.zip",
|
||||
"extract_dir": "telegraf-$version"
|
||||
"extract_dir": "telegraf-$version",
|
||||
"hash": {
|
||||
"url": "https://github.com/influxdata/telegraf/releases/tag/v$version",
|
||||
"regex": "(?s)<td>amd64.+?<td>Windows.+?<code>$sha256</code>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hash": {
|
||||
"url": "https://portal.influxdata.com/downloads/",
|
||||
"regex": "(?sm)Windows Binaries.*?>$sha256</.*?wget $url"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user