From f32eeeeb69da0d39f6cc9c50ecefed5f3df2f073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Fri, 3 Jan 2025 22:29:02 +0100 Subject: [PATCH] Fixing #1195 --- ct/pf2etools.sh | 3 +++ install/pf2etools-install.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ct/pf2etools.sh b/ct/pf2etools.sh index 43d693c8..8ad7dce4 100644 --- a/ct/pf2etools.sh +++ b/ct/pf2etools.sh @@ -50,6 +50,9 @@ function update_script() { unzip -q "${RELEASE}.zip" rm -rf "/opt/${APP}" mv "${APP}-${RELEASE:1}" "/opt/${APP}" + cd /opt/Pf2eTools + npm i + npm run build echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP}" diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index c7b8cfae..3d888740 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -20,7 +20,8 @@ $STD apt-get install -y \ mc \ sudo \ apache2 \ - git + git \ + npm msg_ok "Installed Dependencies" # Setup App @@ -29,6 +30,9 @@ RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/l wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip" unzip -q "${RELEASE}.zip" mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools +cd /opt/Pf2eTools +npm i +npm run build echo "${RELEASE}" >/opt/Pf2eTools_version.txt msg_ok "Set up Pf2eTools"