Browse Source

06k8s-install-centos.sh

master
lizw 3 years ago
parent
commit
0068683bc7
  1. 2
      00base/07env-install-centos.sh

2
00base/07env-install-centos.sh

@ -360,7 +360,7 @@ function init:nodejs() {
exc_cmd="$(utils::quote "$exc_cmd")" exc_cmd="$(utils::quote "$exc_cmd")"
if [[ "${ADD_USER_TAG:-}" == "1" ]]; then if [[ "${ADD_USER_TAG:-}" == "1" ]]; then
command::exec "${host}" " 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" check::exit_code "$?" "nodejs" "$host nodejs配置" "exit"
log::info "[nodejs]" "nodejs配置成功!" log::info "[nodejs]" "nodejs配置成功!"

Loading…
Cancel
Save