mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 12:45:50 +03:00
[PR #65] [MERGED] Add web-based update system with detached process management #188
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/65
Author: @michelroegl-brunner
Created: 10/7/2025
Status: ✅ Merged
Merged: 10/7/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feat/version_handeling📝 Commits (10+)
d03f196feat: Add version checking and update functionality4677a91Update update script9d77834Update update scriptca9abe8Update update script5870654Update update scriptd02352bUpdate update script3ce2139Update update scriptfc78420Update update scriptd7e699dUpdate update script4243543Update update script📊 Changes
9 files changed (+1323 additions, -2 deletions)
View changed files
📝
VERSION(+1 -1)📝
package-lock.json(+10 -0)📝
package.json(+1 -0)➕
src/app/_components/VersionDisplay.tsx(+233 -0)➕
src/app/_components/ui/badge.tsx(+28 -0)📝
src/app/page.tsx(+5 -1)📝
src/server/api/root.ts(+2 -0)➕
src/server/api/routers/version.ts(+148 -0)➕
update.sh(+895 -0)📄 Description
Summary
This PR adds a complete web-based update system that allows updating the application directly from the web interface with proper process management and enhanced reliability.
New Features
1. Web-Based Update Execution
executeUpdatemutation that spawns the update script as a detached background processnohup, allowing it to safely restart the server2. Robust Update Script Implementation
update_files()function with accurate file tracking and progress reportingclear_original_directory()function with proper variable scoping3. Comprehensive Logging and Debugging
/tmp/update.logfor post-mortem analysisTechnical Implementation
Architecture: The update script spawns as a detached process, independent of the Node.js parent process. This allows it to:
Process Flow:
nohupBenefits
Files Changed
src/server/api/routers/version.ts- Web-based update API endpointupdate.sh- Enhanced update script with robust process management and logging🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.