瀏覽代碼

08jenkins-agent-install-centos.sh

lizw 2 年之前
父節點
當前提交
cc2d4717eb
共有 1 個文件被更改,包括 1 次插入0 次删除
  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"