mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-10 09:49:18 +00:00
Fixing also for 5etools.
This commit is contained in:
parent
f32eeeeb69
commit
2fce925afc
@ -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"
|
||||
|
||||
|
@ -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}"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user