From 025a4d25aace1e54a8ff399077776aade3fa89e3 Mon Sep 17 00:00:00 2001 From: Michael Rennecke Date: Wed, 20 Mar 2019 19:47:20 +0100 Subject: [PATCH] download checksum for haproxy --- build-haproxy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-haproxy.sh b/build-haproxy.sh index 7caaafc..48d928b 100755 --- a/build-haproxy.sh +++ b/build-haproxy.sh @@ -5,7 +5,7 @@ set -e HAPROXY_VERSION=1.9.4 HAPROXY_URL=https://www.haproxy.org/download/1.9/src/haproxy-${HAPROXY_VERSION}.tar.gz -HAPROXY_SHA256=8483fe12b30256f83d542b3f699e165d8f71bf2dfac8b16bb53716abce4ba74f +HAPROXY_SHA256_URL=${HAPROXY_URL}.sha256 HAPROXY_SRC=/tmp/haproxy OPENSSL_VERSION=1.1.1b @@ -36,6 +36,7 @@ popd # # build haproxy # +HAPROXY_SHA256=$(wget -O - "$HAPROXY_SHA256_URL" | awk '{ print $1 }') wget -O haproxy.tar.gz "$HAPROXY_URL" echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c