Skip to content

Commit 276ce23

Browse files
michelroegl-brunnerMickLeskCrazyWolf13
authored
Upgrade pve-scripts-local to node 24 (#9457)
Co-authored-by: CanbiZ <[email protected]> Co-authored-by: Tobias <[email protected]>
1 parent 5f91116 commit 276ce23

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

ct/pve-scripts-local.sh

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,9 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
31-
if check_for_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"; then
32-
msg_info "Stopping Services"
33-
systemctl stop pvescriptslocal
34-
msg_ok "Stopped Services"
35-
36-
msg_info "Backup Data"
37-
cp /opt/ProxmoxVE-Local/.env /opt/.env.bak
38-
cp -r /opt/ProxmoxVE-Local/data /opt/data.bak
39-
msg_ok "Backed up Data"
40-
41-
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"
42-
43-
msg_info "Restoring Data"
44-
if [[ -f /opt/.env.bak ]]; then
45-
mv /opt/.env.bak /opt/ProxmoxVE-Local/.env
46-
fi
47-
if [[ -d /opt/data.bak ]]; then
48-
rm -rf /opt/ProxmoxVE-Local/data
49-
mv /opt/data.bak /opt/ProxmoxVE-Local/data
50-
fi
51-
msg_ok "Restored Data"
52-
53-
msg_info "Updating PVE Scripts local"
54-
cd /opt/ProxmoxVE-Local
55-
chmod 755 data
56-
$STD npm install
57-
$STD npm run build
58-
msg_ok "Updated PVE Scripts local"
59-
60-
msg_info "Starting Services"
61-
systemctl start pvescriptslocal
62-
msg_ok "Started Services"
63-
msg_ok "Updated successfully!"
64-
fi
65-
exit
30+
31+
msg_custom "🚀" "${GN}" "The app offers a built-in updater. Please use it."
32+
6633
}
6734

6835
start

install/pve-scripts-local-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $STD apt install -y \
2020
expect
2121
msg_ok "Dependencies installed."
2222

23-
NODE_VERSION=22 setup_nodejs
23+
NODE_VERSION=24 setup_nodejs
2424
fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"
2525

2626
msg_info "Installing PVE Scripts local"

0 commit comments

Comments
 (0)