telegraf: Fix update and hash logic (#2655)

This commit is contained in:
Steve Hipwell 2021-09-10 11:46:31 +01:00 committed by GitHub
parent 4d34f4f6a3
commit bd03bac9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}
}
}