From 463cf387c6dcd68e70d8373c72f30057c9c4f872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Sat, 4 Jan 2025 08:48:31 +0100 Subject: [PATCH] Update 5etools-install.sh --- install/5etools-install.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/install/5etools-install.sh b/install/5etools-install.sh index 6dd58003..895ce70a 100644 --- a/install/5etools-install.sh +++ b/install/5etools-install.sh @@ -20,10 +20,21 @@ $STD apt-get install -y \ mc \ sudo \ git \ - apache2 \ - npm + apache2 msg_ok "Installed Dependencies" +msg_info "Setting up Node.js Repository" +mkdir -p /etc/apt/keyrings +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_20.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 +$STD npm install -g pnpm +msg_ok "Installed Node.js" + # Setup App msg_info "Set up 5etools Base" RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')