Fix the PATH that install-etcd.sh tells you to use

If you have an old etcd installed in /usr/bin then you need to add the
local etcd directory to the *start* of PATH, not the end.
This commit is contained in:
Dan Winship 2016-12-01 10:07:23 -05:00
parent 44f00e1019
commit b39ddf64f6

2
hack/lib/etcd.sh Normal file → Executable file
View File

@ -87,6 +87,6 @@ kube::etcd::install() {
ln -fns "etcd-v${ETCD_VERSION}-linux-amd64" etcd
fi
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"
kube::log::info "export PATH=\${PATH}:$(pwd)/etcd"
kube::log::info "export PATH=$(pwd)/etcd:\${PATH}"
)
}