diff --git a/sd_dsl/02k8s-install-centos.sh b/sd_dsl/02k8s-install-centos.sh index a70832d..30872f4 100644 --- a/sd_dsl/02k8s-install-centos.sh +++ b/sd_dsl/02k8s-install-centos.sh @@ -203,7 +203,7 @@ function command::exec() { command="$sudo_options bash -c $(utils::quote "$command")" fi command="$(utils::quote "$command")" - if [[ "${host}" == "127.0.0.1" ]]; then + if [[ "${host}" == "127.0.0.1" || "${host}" == "10.0.93.197" ]]; then # 本地执行 log::exec "[command]" "bash -c $(printf "%s" "${command//${SUDO_PASSWORD:-}/zzzzzz}")" # shellcheck disable=SC2094