Browse Source

07env-install-centos.sh

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

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

@ -263,7 +263,7 @@ function init:git() {
log::info "[git]" "git环境安装成功!" log::info "[git]" "git环境安装成功!"
if [[ "${ADD_USER_TAG:-}" == "1" ]]; then if [[ "${ADD_USER_TAG:-}" == "1" ]]; then
command::exec "${host}" " command::exec "${host}" "
su - ${ADD_USER_NAME} sudo su - ${ADD_USER_NAME}
git config --global credential.helper store git config --global credential.helper store
" "
check::exit_code "$?" "git" "$host git配置" "exit" check::exit_code "$?" "git" "$host git配置" "exit"
@ -332,7 +332,6 @@ function init:nodejs() {
yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g
yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g
" "
# sudo chown -R $(id -u):$(id -g) /data/jenkins-agent
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