mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 23:25:52 +00:00
Refactor update_script function to streamline update process and ensure version tracking
This commit is contained in:
@@ -50,17 +50,17 @@ function update_script() {
|
||||
unzip -q "${RELEASE}.zip"
|
||||
rm -rf /opt/Guardian
|
||||
mv "Guardian-${RELEASE}/" "/opt/Guardian"
|
||||
|
||||
|
||||
# Build Backend
|
||||
cd /opt/Guardian/backend
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
|
||||
# Build Frontend
|
||||
cd /opt/Guardian/frontend
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
msg_ok "Updated $APP to v${RELEASE}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user