From 297faf823f91736f559c43baa7bbc4c69ca2d61e Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Tue, 3 Sep 2024 10:20:44 +0200 Subject: [PATCH] docs: init container should follow redirects when querying releases with the github api --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa817fbb..f762a8d2 100755 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ extraInitContainers: - | set -ex mkdir -p /var/lib/grafana/plugins/ - ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/victoriametrics-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) + ver=$(curl -s -L https://api.github.com/repos/VictoriaMetrics/victoriametrics-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) curl -L https://github.com/VictoriaMetrics/victoriametrics-datasource/releases/download/$ver/victoriametrics-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/vm-plugin.tar.gz tar -xf /var/lib/grafana/plugins/vm-plugin.tar.gz -C /var/lib/grafana/plugins/ rm /var/lib/grafana/plugins/vm-plugin.tar.gz