File: travis_etcd.sh

package info (click to toggle)
docker-libkv 0.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: sh: 85; makefile: 5
file content (11 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [  $# -gt 0 ] ; then
    ETCD_VERSION="$1"
else
    ETCD_VERSION="2.2.0"
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