mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-15 19:59:41 +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:
parent
e6805db9f5
commit
72db97b226
58 changed files with 148 additions and 791 deletions
|
@ -32,6 +32,15 @@ install_node_and_modules() {
|
|||
NEED_NODE_INSTALL=true
|
||||
fi
|
||||
|
||||
if ! command -v jq &>/dev/null; then
|
||||
$STD msg_info "Installing jq..."
|
||||
$STD apt-get update -qq &>/dev/null
|
||||
$STD apt-get install -y jq &>/dev/null || {
|
||||
msg_error "Failed to install jq"
|
||||
return 1
|
||||
}
|
||||
fi
|
||||
|
||||
# Install Node.js if required
|
||||
if [[ "$NEED_NODE_INSTALL" == true ]]; then
|
||||
$STD apt-get purge -y nodejs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue