Merge commit 'af2e9d27dfe18a95554879982b11e2f6c421b4b8' into debian
This commit is contained in:
@@ -66,7 +66,7 @@ module_hotfixes=1"
|
||||
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
|
||||
|
||||
# Check if Node.js version is an LTS version
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
# Repository content for N|Solid
|
||||
NSOLID_REPO_CONTENT="[nodesource-nsolid]
|
||||
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
|
||||
@@ -88,7 +88,7 @@ if command_exists dnf; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -104,7 +104,7 @@ elif command_exists yum; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
|
||||
else
|
||||
|
||||
@@ -25,7 +25,7 @@ if [ ! -f "$base_script" ]; then
|
||||
fi
|
||||
|
||||
# List of versions
|
||||
versions=("18" "20" "22" "23" "24")
|
||||
versions=("23" "24" "25")
|
||||
|
||||
# Iterate over the versions and create scripts
|
||||
for version in "${versions[@]}"; do
|
||||
@@ -33,8 +33,8 @@ for version in "${versions[@]}"; do
|
||||
done
|
||||
|
||||
# Define LTS and current Node.js versions
|
||||
lts_version="22"
|
||||
current_version="24"
|
||||
lts_version="24"
|
||||
current_version="25"
|
||||
|
||||
# Create setup_lts and setup_current scripts
|
||||
create_script "$lts_version" "lts"
|
||||
|
||||
@@ -1,5 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Send deprecation Warning
|
||||
node_deprecation_warning() {
|
||||
log "
|
||||
===============================================================================
|
||||
DEPRECATION WARNING
|
||||
===============================================================================
|
||||
Node.js 18.x is no longer actively supported!
|
||||
You will not receive security or critical stability updates for this version.
|
||||
|
||||
You should migrate to a supported version of Node.js as soon as possible.
|
||||
|
||||
Please see https://nodesource.com/products/distributions for details about which
|
||||
version may be appropriate for you.
|
||||
|
||||
The NodeSource Node.js distributions site contains
|
||||
information both about supported versions of Node.js and N|Solid supported Linux
|
||||
distributions. To learn more about usage, see:
|
||||
https://nodesource.com/products/distributions
|
||||
|
||||
===============================================================================
|
||||
|
||||
Continuing in 10 seconds ...
|
||||
" "error"
|
||||
sleep 10
|
||||
}
|
||||
|
||||
# Logger Function
|
||||
log() {
|
||||
local message="$1"
|
||||
@@ -36,6 +62,9 @@ if ! [ -f /etc/redhat-release ] && ! grep -q "Amazon Linux" /etc/system-release
|
||||
handle_error 1 "This script is intended for RPM-based systems. Please run it on an RPM-based system."
|
||||
fi
|
||||
|
||||
# Send deprecation Warning
|
||||
node_deprecation_warning
|
||||
|
||||
log "Cleaning up old repositories..." "info"
|
||||
rm -f /etc/yum.repos.d/nodesource*.repo
|
||||
log "Old repositories removed" "info"
|
||||
|
||||
@@ -66,7 +66,7 @@ module_hotfixes=1"
|
||||
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
|
||||
|
||||
# Check if Node.js version is an LTS version
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
# Repository content for N|Solid
|
||||
NSOLID_REPO_CONTENT="[nodesource-nsolid]
|
||||
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
|
||||
@@ -88,7 +88,7 @@ if command_exists dnf; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -104,7 +104,7 @@ elif command_exists yum; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
|
||||
else
|
||||
|
||||
@@ -66,7 +66,7 @@ module_hotfixes=1"
|
||||
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
|
||||
|
||||
# Check if Node.js version is an LTS version
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
# Repository content for N|Solid
|
||||
NSOLID_REPO_CONTENT="[nodesource-nsolid]
|
||||
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
|
||||
@@ -88,7 +88,7 @@ if command_exists dnf; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -104,7 +104,7 @@ elif command_exists yum; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
|
||||
else
|
||||
|
||||
Executable
+132
@@ -0,0 +1,132 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Logger Function
|
||||
log() {
|
||||
local message="$1"
|
||||
local type="$2"
|
||||
local timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
||||
local color
|
||||
local endcolor="\033[0m"
|
||||
|
||||
case "$type" in
|
||||
"info") color="\033[38;5;79m" ;;
|
||||
"success") color="\033[1;32m" ;;
|
||||
"error") color="\033[1;31m" ;;
|
||||
*) color="\033[1;34m" ;;
|
||||
esac
|
||||
|
||||
echo -e "${color}${timestamp} - ${message}${endcolor}"
|
||||
}
|
||||
|
||||
# Error handler function
|
||||
handle_error() {
|
||||
local exit_code=$1
|
||||
local error_message="$2"
|
||||
log "Error: $error_message (Exit Code: $exit_code)" "error"
|
||||
exit $exit_code
|
||||
}
|
||||
|
||||
# Function to check for command availability
|
||||
command_exists() {
|
||||
command -v "$1" &> /dev/null
|
||||
}
|
||||
|
||||
# Check if we are on an RPM-based system
|
||||
if ! [ -f /etc/redhat-release ] && ! grep -q "Amazon Linux" /etc/system-release 2>/dev/null; then
|
||||
handle_error 1 "This script is intended for RPM-based systems. Please run it on an RPM-based system."
|
||||
fi
|
||||
|
||||
log "Cleaning up old repositories..." "info"
|
||||
rm -f /etc/yum.repos.d/nodesource*.repo
|
||||
log "Old repositories removed" "info"
|
||||
|
||||
# Define Node.js version
|
||||
NODE_VERSION="25.x"
|
||||
|
||||
# Get system architecture
|
||||
SYS_ARCH=$(uname -m)
|
||||
|
||||
# Validate system architecture
|
||||
case "$SYS_ARCH" in
|
||||
aarch64|x86_64) log "Supported architecture: $SYS_ARCH" "info" ;;
|
||||
*) handle_error 1 "Unsupported architecture: $SYS_ARCH. Only aarch64 and x86_64 are supported." ;;
|
||||
esac
|
||||
|
||||
# Repository content for Node.js
|
||||
NODEJS_REPO_CONTENT="[nodesource-nodejs]
|
||||
name=Node.js Packages for Linux RPM based distros - $SYS_ARCH
|
||||
baseurl=https://rpm.nodesource.com/pub_${NODE_VERSION}/nodistro/nodejs/$SYS_ARCH
|
||||
priority=9
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://rpm.nodesource.com/gpgkey/ns-operations-public.key
|
||||
module_hotfixes=1"
|
||||
|
||||
# Write Node.js repository content
|
||||
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
|
||||
|
||||
# Check if Node.js version is an LTS version
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
# Repository content for N|Solid
|
||||
NSOLID_REPO_CONTENT="[nodesource-nsolid]
|
||||
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
|
||||
baseurl=https://rpm.nodesource.com/pub_${NODE_VERSION}/nodistro/nsolid/$SYS_ARCH
|
||||
priority=9
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://rpm.nodesource.com/gpgkey/ns-operations-public.key
|
||||
module_hotfixes=1"
|
||||
|
||||
# Write N|Solid repository content
|
||||
echo "$NSOLID_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nsolid.repo > /dev/null
|
||||
log "Added N|Solid repository for LTS version: $NODE_VERSION" "info"
|
||||
fi
|
||||
|
||||
# Check for availability of dnf, yum or microdnf
|
||||
if command_exists dnf; then
|
||||
log "dnf available, updating..." "info"
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
log "To install N|solid Runtime, run: dnf install nsolid -y" "success"
|
||||
else
|
||||
log "Repository is configured and updated." "info"
|
||||
fi
|
||||
|
||||
log "Run 'dnf install nodejs -y' to complete the installation." "info"
|
||||
exit 0
|
||||
elif command_exists yum; then
|
||||
log "yum available, updating..." "info"
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
log "Run 'yum install nsolid -y' to complete the installation." "success"
|
||||
else
|
||||
log "Repository is configured and updated." "info"
|
||||
fi
|
||||
|
||||
log "Run 'yum install nodejs -y' to complete the installation." "info"
|
||||
elif command_exists microdnf; then
|
||||
log "microdnf available, updating..." "info"
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
|
||||
else
|
||||
log "Repository is configured and updated." "info"
|
||||
fi
|
||||
|
||||
log "Run 'microdnf install nodejs -y' to complete the installation." "info"
|
||||
else
|
||||
handle_error 1 "Neither yum, dnf nor microdnf package manager was found. Please update your system using your package manager."
|
||||
fi
|
||||
@@ -41,7 +41,7 @@ rm -f /etc/yum.repos.d/nodesource*.repo
|
||||
log "Old repositories removed" "info"
|
||||
|
||||
# Define Node.js version
|
||||
NODE_VERSION="24.x"
|
||||
NODE_VERSION="25.x"
|
||||
|
||||
# Get system architecture
|
||||
SYS_ARCH=$(uname -m)
|
||||
@@ -66,7 +66,7 @@ module_hotfixes=1"
|
||||
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
|
||||
|
||||
# Check if Node.js version is an LTS version
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
# Repository content for N|Solid
|
||||
NSOLID_REPO_CONTENT="[nodesource-nsolid]
|
||||
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
|
||||
@@ -88,7 +88,7 @@ if command_exists dnf; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -104,7 +104,7 @@ elif command_exists yum; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
|
||||
else
|
||||
|
||||
@@ -41,7 +41,7 @@ rm -f /etc/yum.repos.d/nodesource*.repo
|
||||
log "Old repositories removed" "info"
|
||||
|
||||
# Define Node.js version
|
||||
NODE_VERSION="22.x"
|
||||
NODE_VERSION="24.x"
|
||||
|
||||
# Get system architecture
|
||||
SYS_ARCH=$(uname -m)
|
||||
@@ -66,7 +66,7 @@ module_hotfixes=1"
|
||||
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
|
||||
|
||||
# Check if Node.js version is an LTS version
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
# Repository content for N|Solid
|
||||
NSOLID_REPO_CONTENT="[nodesource-nsolid]
|
||||
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
|
||||
@@ -88,7 +88,7 @@ if command_exists dnf; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -104,7 +104,7 @@ elif command_exists yum; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated." "info"
|
||||
log "You can use N|solid Runtime as a node.js alternative" "info"
|
||||
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
|
||||
|
||||
# Update N|Solid repository if it's LTS
|
||||
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
|
||||
if [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]] || [[ "$NODE_VERSION" == "24.x" ]]; then
|
||||
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
|
||||
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user