mirror of https://github.com/docker/docs.git
12 lines
335 B
Bash
Executable File
12 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -gt 0 ] ; then
|
|
ETCD_VERSION="$1"
|
|
else
|
|
ETCD_VERSION="2.0.11"
|
|
fi
|
|
|
|
curl -L https://github.com/coreos/etcd/releases/download/v$ETCD_VERSION/etcd-v$ETCD_VERSION-linux-amd64.tar.gz -o etcd-v$ETCD_VERSION-linux-amd64.tar.gz
|
|
tar xzvf etcd-v$ETCD_VERSION-linux-amd64.tar.gz
|
|
mv etcd-v$ETCD_VERSION-linux-amd64 etcd
|