From 2fce925afc7e9cf72c298ddc0f1cf6dc17c2b393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Fri, 3 Jan 2025 22:34:40 +0100 Subject: [PATCH] Fixing also for 5etools. --- ct/5etools.sh | 4 ++++ ct/pf2etools.sh | 1 + install/5etools-install.sh | 7 ++++++- install/pf2etools-install.sh | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ct/5etools.sh b/ct/5etools.sh index b0a40cf8..f085964e 100644 --- a/ct/5etools.sh +++ b/ct/5etools.sh @@ -51,6 +51,10 @@ function update_script() { rm -rf "/opt/${APP}" mv "${APP}-src-${RELEASE:1}" "/opt/${APP}" mv "/opt/img-backup" "/opt/${APP}/img" + cd /opt/5etools + npm i + npm run build + cd ~ echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated base 5etools" diff --git a/ct/pf2etools.sh b/ct/pf2etools.sh index 8ad7dce4..de2a5d92 100644 --- a/ct/pf2etools.sh +++ b/ct/pf2etools.sh @@ -53,6 +53,7 @@ function update_script() { cd /opt/Pf2eTools npm i npm run build + cd ~ echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP}" diff --git a/install/5etools-install.sh b/install/5etools-install.sh index 5f9da35d..6f6ef029 100644 --- a/install/5etools-install.sh +++ b/install/5etools-install.sh @@ -20,7 +20,8 @@ $STD apt-get install -y \ mc \ sudo \ git \ - apache2 + apache2 \ + npm msg_ok "Installed Dependencies" # Setup App @@ -29,6 +30,10 @@ RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/rele wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip" unzip -q "${RELEASE}.zip" mv "5etools-src-${RELEASE:1}" /opt/5etools +cd /opt/5etools +npm i +npm run build +cd ~ echo "${RELEASE}" >"/opt/5etools_version.txt" rm "${RELEASE}.zip" msg_ok "Set up 5etools Base" diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index 3d888740..b8bbb15b 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -33,6 +33,7 @@ mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools cd /opt/Pf2eTools npm i npm run build +cd ~ echo "${RELEASE}" >/opt/Pf2eTools_version.txt msg_ok "Set up Pf2eTools"