Explorar el Código

06k8s-install-centos.sh

lizw hace 2 años
padre
commit
0068683bc7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      00base/07env-install-centos.sh

+ 1 - 1
00base/07env-install-centos.sh

@@ -360,7 +360,7 @@ function init:nodejs() {
   exc_cmd="$(utils::quote "$exc_cmd")"
   if [[ "${ADD_USER_TAG:-}" == "1" ]]; then
     command::exec "${host}" "
-      echo '${ADD_USER_PASSWORD}' | su - ${ADD_USER_NAME} -c \"$exc_cmd\"
+      echo '${ADD_USER_PASSWORD}' | su - ${ADD_USER_NAME} -c $exc_cmd
     "
     check::exit_code "$?" "nodejs" "$host nodejs配置" "exit"
     log::info "[nodejs]" "nodejs配置成功!"