Replace deprecated Node.js setup script with commands to manually set up the nodesource repo (from https://github.com/nodesource/distributions#installation-instructions)

pull/1750/head
Nathan Broadbent 2 years ago
parent 49662ddd3d
commit dce3bdaec9
No known key found for this signature in database
  1. 8
      ct/cronicle.sh
  2. 10
      install/changedetection-install.sh
  3. 8
      install/homarr-install.sh
  4. 12
      install/homepage-install.sh
  5. 8
      install/jellyseerr-install.sh
  6. 8
      install/n8n-install.sh
  7. 8
      install/node-red-install.sh
  8. 8
      install/overseerr-install.sh
  9. 8
      install/photoprism-install.sh
  10. 8
      install/scrypted-install.sh
  11. 8
      install/shinobi-install.sh
  12. 8
      install/uptimekuma-install.sh
  13. 8
      install/wikijs-install.sh
  14. 8
      install/zigbee2mqtt-install.sh
  15. 16
      misc/install.func

@ -75,13 +75,7 @@ apt-get install -y g++ &>/dev/null
apt-get install -y gcc &>/dev/null
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
bash <(curl -fsSL https://deb.nodesource.com/setup_16.x) &>/dev/null
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
apt-get install -y nodejs &>/dev/null
msg_ok "Installed Node.js"
install_nodejs 16
msg_info "Installing Cronicle Worker"
mkdir -p /opt/cronicle

@ -53,15 +53,7 @@ $STD apt-get install -y \
python3-pip
msg_ok "Updated Python3"
msg_info "Setting up Node.js Repository"
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get update
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Change Detection"
mkdir /opt/changedetection

@ -20,13 +20,7 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Yarn"
$STD npm install -g yarn

@ -18,16 +18,16 @@ $STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y git
$STD apt-get install -y make
$STD apt-get install -y g++
$STD apt-get install -y gcc
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
install_nodejs 18
msg_info "Installing Node.js"
$STD apt-get install -y nodejs git make g++ gcc
msg_info "Installing pnpm"
$STD npm install -g pnpm
msg_ok "Installed Node.js"
msg_ok "Installed pnpm"
msg_info "Installing Homepage (Patience)"
cd /opt

@ -20,13 +20,7 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Yarn"
$STD npm install -g yarn

@ -19,13 +19,7 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing n8n (Patience)"
$STD npm install --global n8n

@ -20,13 +20,7 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Node-Red"
$STD npm install -g --unsafe-perm node-red

@ -20,13 +20,7 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Yarn"
$STD npm install -g yarn

@ -28,13 +28,7 @@ $STD apt-get install -y ffmpeg
$STD apt-get install -y libheif1
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get -y install nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Golang"
set +o pipefail

@ -62,13 +62,7 @@ $STD apt-get -y install \
gstreamer1.0-alsa
msg_ok "Installed GStreamer"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Updating Python3"
$STD apt-get install -y \

@ -28,13 +28,7 @@ $STD apt-get install -y make zip net-tools
$STD apt-get install -y gcc g++ cmake
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing FFMPEG"
$STD apt-get install -y ffmpeg

@ -20,13 +20,7 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD sudo apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Installing Uptime Kuma"
$STD git clone https://github.com/louislam/uptime-kuma.git

@ -20,13 +20,7 @@ $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_16.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 16
msg_info "Installing Wiki.js"
mkdir -p /opt/wikijs

@ -23,13 +23,7 @@ $STD apt-get install -y g++
$STD apt-get install -y gcc
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
install_nodejs 18
msg_info "Setting up Zigbee2MQTT Repository"
$STD git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt

@ -117,6 +117,22 @@ update_os() {
msg_ok "Updated Container OS"
}
# This function sets up the Node.js repository and installs Node.js
# Takes one argument: the Node.js version to install
install_nodejs() {
local NODE_VERSION="$1"
msg_info "Setting up Node.js Repository"
$STD apt-get install -y ca-certificates curl gnupg
$STD mkdir -p /etc/apt/keyrings
$STD curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
$STD echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_VERSION}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
$STD apt-get update
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
}
# This function modifies the message of the day (motd) and SSH settings
motd_ssh() {
echo "export TERM='xterm-256color'" >>/root/.bashrc

Loading…
Cancel
Save