Fixing also for 5etools.

This commit is contained in:
Johanna Rührig 2025-01-03 22:34:40 +01:00
parent f32eeeeb69
commit 2fce925afc
4 changed files with 12 additions and 1 deletions

View File

@ -51,6 +51,10 @@ function update_script() {
rm -rf "/opt/${APP}" rm -rf "/opt/${APP}"
mv "${APP}-src-${RELEASE:1}" "/opt/${APP}" mv "${APP}-src-${RELEASE:1}" "/opt/${APP}"
mv "/opt/img-backup" "/opt/${APP}/img" mv "/opt/img-backup" "/opt/${APP}/img"
cd /opt/5etools
npm i
npm run build
cd ~
echo "${RELEASE}" >"/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated base 5etools" msg_ok "Updated base 5etools"

View File

@ -53,6 +53,7 @@ function update_script() {
cd /opt/Pf2eTools cd /opt/Pf2eTools
npm i npm i
npm run build npm run build
cd ~
echo "${RELEASE}" >"/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -20,7 +20,8 @@ $STD apt-get install -y \
mc \ mc \
sudo \ sudo \
git \ git \
apache2 apache2 \
npm
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
# Setup App # 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" wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip"
unzip -q "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
mv "5etools-src-${RELEASE:1}" /opt/5etools mv "5etools-src-${RELEASE:1}" /opt/5etools
cd /opt/5etools
npm i
npm run build
cd ~
echo "${RELEASE}" >"/opt/5etools_version.txt" echo "${RELEASE}" >"/opt/5etools_version.txt"
rm "${RELEASE}.zip" rm "${RELEASE}.zip"
msg_ok "Set up 5etools Base" msg_ok "Set up 5etools Base"

View File

@ -33,6 +33,7 @@ mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools
cd /opt/Pf2eTools cd /opt/Pf2eTools
npm i npm i
npm run build npm run build
cd ~
echo "${RELEASE}" >/opt/Pf2eTools_version.txt echo "${RELEASE}" >/opt/Pf2eTools_version.txt
msg_ok "Set up Pf2eTools" msg_ok "Set up Pf2eTools"