Merge commit 'af2e9d27dfe18a95554879982b11e2f6c421b4b8' into debian
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user