Skip to content

Commit

Permalink
Update NodeJS to 18.x on Ubuntu with Foreman 3.14+
Browse files Browse the repository at this point in the history
As part of dropping NodeJS 14 this updates nodesource to NodeJS 18.
That's also the version included in Ubuntu 24.04.

It drops the conditionals for Foreman < 3.9 since those are gone now.
  • Loading branch information
ekohl committed Dec 20, 2024
1 parent 447916a commit 1e94116
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

# Nodesource
if [[ $FOREMAN_VERSION == 3.[0-8] ]]; then
nodesrcv="12.x"
else
if [[ $FOREMAN_VERSION == 3.1[0-3] ]]; then
nodesrcv="14.x"
else
nodesrcv="18.x"
fi
echo "deb http://deb.nodesource.com/node_${nodesrcv} ${DISTRIBUTION} main" >> /etc/apt/sources.list

Expand Down

0 comments on commit 1e94116

Please sign in to comment.