From b334b60959cef86c9a4b7d0012ed36d0902480a9 Mon Sep 17 00:00:00 2001
From: Tom Robinson <tlrobinson@gmail.com>
Date: Fri, 15 Mar 2019 16:23:48 -0700
Subject: [PATCH] build_image: follow redirects when downloading JAR

---
 bin/docker/build_image.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/docker/build_image.sh b/bin/docker/build_image.sh
index 25007e8b6e5..de15c927e78 100755
--- a/bin/docker/build_image.sh
+++ b/bin/docker/build_image.sh
@@ -43,7 +43,7 @@ if [ "$BUILD_TYPE" == "release" ]; then
     echo "Building Docker image ${DOCKER_IMAGE} from official Metabase release ${MB_TAG}"
 
     # download the official version of Metabase which matches our tag
-    curl -f -o ${BASEDIR}/metabase.jar http://downloads.metabase.com/${MB_TAG}/metabase.jar
+    curl -L -f -o ${BASEDIR}/metabase.jar http://downloads.metabase.com/${MB_TAG}/metabase.jar
 
     if [[ $? -ne 0 ]]; then
         echo "Download failed!"
-- 
GitLab