Skip to content

Commit

Permalink
fix(download): fix etcd bin download failed
Browse files Browse the repository at this point in the history
fix etcd bin download failed

see also etcd-io/etcd#12734

Signed-off-by: mritd <mritd@linux.com>
  • Loading branch information
mritd committed Mar 22, 2021
1 parent c127917 commit cf21d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*.run
makeself*
8 changes: 5 additions & 3 deletions build.sh
@@ -1,14 +1,14 @@
#!/usr/bin/env bash

set -e
set -ex

VERSION=${1}
MAKESELF_VERSION=${MAKESELF_VERSION:-"2.4.3"}
MAKESELF_INSTALL_DIR=$(mktemp -d makeself.XXXXXX)

check_version(){
if [ -z "${VERSION}" ]; then
warn "etcd version not specified, use default version 3.4.14."
warn "etcd version not specified, use default version 3.4.15."
VERSION="3.4.15"
fi
}
Expand All @@ -23,7 +23,9 @@ check_makeself(){

download(){
info "downloading etcd precompiled binary."
wget -q https://github.com/coreos/etcd/releases/download/v${VERSION}/etcd-v${VERSION}-linux-amd64.tar.gz
#wget -q https://github.com/coreos/etcd/releases/download/v${VERSION}/etcd-v${VERSION}-linux-amd64.tar.gz
# for 3.4.15, this is a temporary fix
wget -q https://github.com/alvistack/etcd-io-etcd/releases/download/v${VERSION}/etcd-v${VERSION}-linux-amd64.tar.gz

info "extract the files."
tar -zxf etcd-v${VERSION}-linux-amd64.tar.gz
Expand Down

0 comments on commit cf21d2b

Please sign in to comment.