Skip to content

Commit f4746b9

Browse files
author
Jesus Paz
authored
Merge pull request #1857 from nodesource/feat/add-node-22-lts
fix: add Node.js v22 to LTS in rpm script
2 parents a243217 + 0f82885 commit f4746b9

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

scripts/rpm/script_generator/base_script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

scripts/rpm/setup_18.x

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

scripts/rpm/setup_20.x

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

scripts/rpm/setup_22.x

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

scripts/rpm/setup_23.x

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

scripts/rpm/setup_current.x

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

scripts/rpm/setup_lts.x

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module_hotfixes=1"
6666
echo "$NODEJS_REPO_CONTENT" | tee /etc/yum.repos.d/nodesource-nodejs.repo > /dev/null
6767

6868
# Check if Node.js version is an LTS version
69-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
69+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
7070
# Repository content for N|Solid
7171
NSOLID_REPO_CONTENT="[nodesource-nsolid]
7272
name=N|Solid Packages for Linux RPM based distros - $SYS_ARCH
@@ -88,7 +88,7 @@ if command_exists dnf; then
8888
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
8989

9090
# Update N|Solid repository if it's LTS
91-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
91+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
9292
dnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
9393
log "Repository is configured and updated." "info"
9494
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -104,7 +104,7 @@ elif command_exists yum; then
104104
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
105105

106106
# Update N|Solid repository if it's LTS
107-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
107+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
108108
yum makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
109109
log "Repository is configured and updated." "info"
110110
log "You can use N|solid Runtime as a node.js alternative" "info"
@@ -119,7 +119,7 @@ elif command_exists microdnf; then
119119
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs"
120120

121121
# Update N|Solid repository if it's LTS
122-
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]]; then
122+
if [[ "$NODE_VERSION" == "18.x" ]] || [[ "$NODE_VERSION" == "20.x" ]] || [[ "$NODE_VERSION" == "22.x" ]]; then
123123
microdnf makecache --disablerepo="*" --enablerepo="nodesource-nsolid"
124124
log "Repository is configured and updated. Run 'microdnf install nsolid -y' to complete the installation." "info"
125125
else

0 commit comments

Comments
 (0)