mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update homepage.sh to use setup_nodejs (#6462)
This commit is contained in:
		@@ -27,14 +27,9 @@ function update_script() {
 | 
				
			|||||||
    msg_error "No ${APP} Installation Found!"
 | 
					    msg_error "No ${APP} Installation Found!"
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
  if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
 | 
					
 | 
				
			||||||
    if ! command -v npm >/dev/null 2>&1; then
 | 
					  NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
 | 
				
			||||||
      echo "Installing NPM..."
 | 
					
 | 
				
			||||||
      $STD apt-get install -y npm
 | 
					 | 
				
			||||||
      $STD npm install -g pnpm
 | 
					 | 
				
			||||||
      echo "Installed NPM..."
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
  # ensure that jq is installed
 | 
					  # ensure that jq is installed
 | 
				
			||||||
  if ! command -v jq &>/dev/null; then
 | 
					  if ! command -v jq &>/dev/null; then
 | 
				
			||||||
    $STD msg_info "Installing jq..."
 | 
					    $STD msg_info "Installing jq..."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user