From e1751e284b153ab2f044e8e91a632b702b5a60bf Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Sun, 30 Oct 2022 19:11:23 +0800 Subject: [PATCH] 07env-install-centos.sh --- 00base/07env-install-centos.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index 1c8b542..71f2f57 100644 --- a/00base/07env-install-centos.sh +++ b/00base/07env-install-centos.sh @@ -263,7 +263,7 @@ function init:git() { log::info "[git]" "git环境安装成功!" if [[ "${ADD_USER_TAG:-}" == "1" ]]; then command::exec "${host}" " - su - ${ADD_USER_NAME} + sudo su - ${ADD_USER_NAME} git config --global credential.helper store " 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 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" log::info "[nodejs]" "安装nodejs环境成功!" }