From d477ca1f3e256478dfe41cd75a8bc2da2c37d99b Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Tue, 27 Feb 2018 21:36:31 +0000 Subject: [PATCH] Allow overwriteable download url Signed-off-by: Eli Uriegas --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4e71a41..d7bbd13 100644 --- a/install.sh +++ b/install.sh @@ -28,7 +28,10 @@ if [ -z "$CHANNEL" ]; then CHANNEL=$DEFAULT_CHANNEL_VALUE fi -DOWNLOAD_URL="https://download.docker.com" +DEFAULT_DOWNLOAD_URL="https://download.docker.com" +if [ -z "$DOWNLOAD_URL" ]; then + DOWNLOAD_URL=$DEFAULT_DOWNLOAD_URL +fi SUPPORT_MAP=" x86_64-centos-7