Skip to content

Commit 599ecfb

Browse files
committed
Download etcd3 only zip file not exists
Give a change to manually prepare the zip file for etcd. Change-Id: I54283cf2ed62bb716af34df21e8c168014264c8c
1 parent 3603bf5 commit 599ecfb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/etcd3

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ function install_etcd3 {
115115
# Download and cache the etcd tgz for subsequent use
116116
if [ ! -f "$FILES/etcd-$ETCD_VERSION-linux-$ETCD_ARCH/etcd" ]; then
117117
ETCD_DOWNLOAD_FILE=$ETCD_NAME.tar.gz
118-
wget $ETCD_DOWNLOAD_URL/$ETCD_VERSION/$ETCD_DOWNLOAD_FILE -O $FILES/$ETCD_DOWNLOAD_FILE
118+
if [ ! -f "$FILES/$ETCD_DOWNLOAD_FILE" ]; then
119+
wget $ETCD_DOWNLOAD_URL/$ETCD_VERSION/$ETCD_DOWNLOAD_FILE -O $FILES/$ETCD_DOWNLOAD_FILE
120+
fi
119121
echo "${ETCD_SHA256} $FILES/${ETCD_DOWNLOAD_FILE}" > $FILES/etcd.sha256sum
120122
# NOTE(sdague): this should go fatal if this fails
121123
sha256sum -c $FILES/etcd.sha256sum

0 commit comments

Comments
 (0)