Ver Fonte

08jenkins-agent-install-centos.sh

lizw há 2 anos atrás
pai
commit
cc2d4717eb
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      00base/08jenkins-agent-install-centos.sh

+ 1 - 0
00base/08jenkins-agent-install-centos.sh

@@ -331,6 +331,7 @@ function init:nodejs() {
       wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate $nodejs_url -O ${BASE_DIR}/maven/$nodejs_file_name
       cd ${BASE_DIR}/nodejs
       tar -zxvf $nodejs_file_name
+      sudo chown -R \$(id -u):\$(id -g) ${BASE_DIR}/nodejs
     fi
   "
   check::exit_code "$?" "nodejs" "$host 安装nodejs ${NODEJS_VERSION}" "exit"