mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #76608 from suigh/b1_etcd.sh
update the output of install-etcd.sh, show how to export the environment of etcd
This commit is contained in:
commit
f980370fc0
@ -112,9 +112,9 @@ kube::etcd::install() {
|
|||||||
|
|
||||||
cd "${KUBE_ROOT}/third_party" || return 1
|
cd "${KUBE_ROOT}/third_party" || return 1
|
||||||
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
|
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
|
||||||
kube::log::info "etcd v${ETCD_VERSION} already installed at path:"
|
kube::log::info "etcd v${ETCD_VERSION} already installed. To use:"
|
||||||
kube::log::info "$(pwd)/$(readlink etcd)"
|
kube::log::info "export PATH=\"$(pwd)/etcd:\${PATH}\""
|
||||||
return # already installed
|
return #already installed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${os} == "darwin" ]]; then
|
if [[ ${os} == "darwin" ]]; then
|
||||||
@ -133,6 +133,6 @@ kube::etcd::install() {
|
|||||||
rm "${download_file}"
|
rm "${download_file}"
|
||||||
fi
|
fi
|
||||||
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"
|
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"
|
||||||
kube::log::info "export PATH=$(pwd)/etcd:\${PATH}"
|
kube::log::info "export PATH=\"$(pwd)/etcd:\${PATH}\""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user