Explorar o código

08jenkins-agent-install-centos.sh

lizw %!s(int64=2) %!d(string=hai) anos
pai
achega
cc2d4717eb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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"