mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
update the output of install-etcd.sh, show how to export the environment of etcd.
This commit is contained in:
parent
252484705a
commit
c056a46ba9
@ -112,8 +112,8 @@ 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
|
||||||
|
|
||||||
@ -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