lizw пре 2 година
родитељ
комит
e1751e284b
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      00base/07env-install-centos.sh

+ 1 - 2
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环境成功!"
 }