mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Big NodeJS Update: Use Helper Function on all Install-Scripts (#4744)
* Big NodeJS Update: Use Helper Function on all Install-Scripts * add jq in node_function * add more
This commit is contained in:
		@@ -24,7 +24,6 @@ $STD apt-get install -y --no-install-recommends \
 | 
			
		||||
  libsasl2-dev \
 | 
			
		||||
  libldap2-dev \
 | 
			
		||||
  libssl-dev \
 | 
			
		||||
  gpg \
 | 
			
		||||
  git \
 | 
			
		||||
  make \
 | 
			
		||||
  pkg-config \
 | 
			
		||||
@@ -43,17 +42,7 @@ $STD apt-get install -y \
 | 
			
		||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
 | 
			
		||||
msg_ok "Setup Python3"
 | 
			
		||||
 | 
			
		||||
msg_info "Setting up Node.js Repository"
 | 
			
		||||
mkdir -p /etc/apt/keyrings
 | 
			
		||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
 | 
			
		||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
 | 
			
		||||
msg_ok "Set up Node.js Repository"
 | 
			
		||||
 | 
			
		||||
msg_info "Installing Node.js"
 | 
			
		||||
$STD apt-get update
 | 
			
		||||
$STD apt-get install -y nodejs
 | 
			
		||||
$STD npm install -g yarn
 | 
			
		||||
msg_ok "Installed Node.js"
 | 
			
		||||
NODE_VERSION="20" NODE_MODULE="yarn@latest" install_node_and_modules
 | 
			
		||||
 | 
			
		||||
msg_info "Installing Tandoor (Patience)"
 | 
			
		||||
$STD git clone https://github.com/TandoorRecipes/recipes -b master /opt/tandoor
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user