From 474aeb4f996ca067fc9113c1874f9d135c5200d1 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 9 Apr 2015 23:19:13 -0700 Subject: [PATCH] Allow hostname to be set by DHCP --- scripts/build-common | 4 ++++ scripts/download | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-common b/scripts/build-common index b407b18e..ab4f02f3 100644 --- a/scripts/build-common +++ b/scripts/build-common @@ -142,6 +142,10 @@ download() local file=${ARTIFACTS}/$(basename $2) local hash=$1 + if [ "$3" != "" ]; then + file=${ARTIFACTS}/$3 + fi + if ! check $hash $file; then echo Downloading $url to $file curl -sL $url > $file diff --git a/scripts/download b/scripts/download index 3584a1cb..81af6763 100755 --- a/scripts/download +++ b/scripts/download @@ -5,4 +5,4 @@ cd $(dirname $0)/.. source scripts/build-common download 9a61da8dd88bc79f212e085fc3f5b6260ff82ceb https://github.com/rancherio/os-base/releases/download/v0.2.1/os-base.tar.xz -download b56232025ec4fd71117ef099aa40e99c38e48296 https://github.com/rancherio/docker/releases/download/v1.6.0-rc4-rancher-1/docker +download 244da0aa87904c60bcfaa8ec74798a7d3b229e73 https://github.com/rancherio/docker/releases/download/v1.6.0-rc4-rancher-2/docker-1.6.0-rc4 docker