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