فهرست منبع

02k8s-install-centos.sh

lizw 10 ماه پیش
والد
کامیت
8c90ce4d82
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      sd_dsl/02k8s-install-centos.sh

+ 1 - 1
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