mirror of https://github.com/k3s-io/k3s
Merge pull request #69086 from bruceauyeung/log-useful-info-instead-of-silent-exit-when-etcd-already-installed
log useful information instead of silent exit without errorpull/564/head
commit
e47973bd31
|
@ -108,6 +108,8 @@ kube::etcd::install() {
|
|||
cd "${KUBE_ROOT}/third_party"
|
||||
os=$(uname | tr "[:upper:]" "[:lower:]")
|
||||
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
|
||||
kube::log::info "etcd v${ETCD_VERSION} already installed at path:"
|
||||
kube::log::info "$(pwd)/$(readlink etcd)"
|
||||
return # already installed
|
||||
fi
|
||||
if [[ ${os} == "darwin" ]]; then
|
||||
|
|
Loading…
Reference in New Issue