update the output of install-etcd.sh, show how to export the environment of etcd.

This commit is contained in:
suigh 2019-04-19 16:43:00 +08:00
parent 252484705a
commit c056a46ba9

View File

@ -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}\""
) )
} }