From bd03bac9a715eb00815a5cb5c9e59fe1c1ecf8e3 Mon Sep 17 00:00:00 2001 From: Steve Hipwell Date: Fri, 10 Sep 2021 11:46:31 +0100 Subject: [PATCH] telegraf: Fix update and hash logic (#2655) --- bucket/telegraf.json | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bucket/telegraf.json b/bucket/telegraf.json index 9b36d6e841..cef1f5543d 100644 --- a/bucket/telegraf.json +++ b/bucket/telegraf.json @@ -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)amd64.+?Windows.+?$sha256" + } } - }, - "hash": { - "url": "https://portal.influxdata.com/downloads/", - "regex": "(?sm)Windows Binaries.*?>$sha256