This commit is contained in:
Johanna Rührig 2025-01-03 22:29:02 +01:00
parent 036728df0d
commit f32eeeeb69
2 changed files with 8 additions and 1 deletions

View File

@ -50,6 +50,9 @@ function update_script() {
unzip -q "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
rm -rf "/opt/${APP}" rm -rf "/opt/${APP}"
mv "${APP}-${RELEASE:1}" "/opt/${APP}" mv "${APP}-${RELEASE:1}" "/opt/${APP}"
cd /opt/Pf2eTools
npm i
npm run build
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 \
apache2 \ apache2 \
git git \
npm
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
# Setup App # 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" wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
unzip -q "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools
cd /opt/Pf2eTools
npm i
npm run build
echo "${RELEASE}" >/opt/Pf2eTools_version.txt echo "${RELEASE}" >/opt/Pf2eTools_version.txt
msg_ok "Set up Pf2eTools" msg_ok "Set up Pf2eTools"