From cceb02821a3fd3eab9ca3df6db254549c9e7ef40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Sat, 4 Jan 2025 08:49:34 +0100 Subject: [PATCH] Update pf2etools-install.sh --- install/pf2etools-install.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index 986aff1e..ae6424e0 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -20,10 +20,21 @@ $STD apt-get install -y \ mc \ sudo \ apache2 \ - git \ - npm + git 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 "Setup Pf2eTools" RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')