From 499e0f62da3886ecf48e4954caceeb53502c28bb Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Sun, 28 Jul 2019 19:38:45 -0400 Subject: [PATCH] lbrynet: Follow redirects in curl to github API Follow redirects --- lbrynet/Dockerfile-linux-x86_64-production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/Dockerfile-linux-x86_64-production b/lbrynet/Dockerfile-linux-x86_64-production index dceb8c7..99461f0 100644 --- a/lbrynet/Dockerfile-linux-x86_64-production +++ b/lbrynet/Dockerfile-linux-x86_64-production @@ -5,7 +5,7 @@ RUN apt-get update && apt-get -y install unzip curl ## Add lbrynet ARG VERSION=latest -RUN URL=$(curl -s https://api.github.com/repos/lbryio/lbry-sdk/releases/$(if [ "${VERSION}" = 'latest' ]; then echo "latest"; else echo "tags/${VERSION}"; fi) | grep browser_download_url | grep lbrynet-linux.zip | cut -d'"' -f4) && echo $URL && curl -L -o /lbrynet.linux.zip $URL +RUN URL=$(curl -Ls https://api.github.com/repos/lbryio/lbry-sdk/releases/$(if [ "${VERSION}" = 'latest' ]; then echo "latest"; else echo "tags/${VERSION}"; fi) | grep browser_download_url | grep lbrynet-linux.zip | cut -d'"' -f4) && echo $URL && curl -L -o /lbrynet.linux.zip $URL COPY stuff/start.sh /usr/bin/start COPY stuff/checkmount.sh /usr/bin/checkmount