From d683400a1993212068399eeaa0feb7b612c68690 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Wed, 2 Oct 2019 00:29:19 +0000 Subject: [PATCH] Check that redis archive matches hash (#450) Redis is downloaded without TLS --- image/base/install-redis | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image/base/install-redis b/image/base/install-redis index e2cc22d..d6affb3 100755 --- a/image/base/install-redis +++ b/image/base/install-redis @@ -1,11 +1,13 @@ #!/bin/bash set -e REDIS_VERSION=5.0.5 +REDIS_HASH="2139009799d21d8ff94fc40b7f36ac46699b9e1254086299f8d3b223ca54a375" cd /tmp # Prepare Redis source. wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz +echo "$REDIS_HASH redis-$REDIS_VERSION.tar.gz" | sha256sum -c tar zxf redis-$REDIS_VERSION.tar.gz cd redis-$REDIS_VERSION -- 2.25.1