From 8c90ce4d82c545b6e4c3ff07c39387d22332c952 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Thu, 1 Aug 2024 13:59:52 +0800 Subject: [PATCH] 02k8s-install-centos.sh --- sd_dsl/02k8s-install-centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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