update dix
This commit is contained in:
parent
e921a49d5b
commit
11691a5876
11 changed files with 1108 additions and 54 deletions
|
|
@ -106,6 +106,24 @@ Useful configuration and runtime areas:
|
|||
|
||||
The agent also maintains screen logs and helper scripts inside its runtime area.
|
||||
|
||||
## Remote Git Self-Update
|
||||
|
||||
The Linux agent exposes the admin-only `component_update` XML-RPC method. The Panel update page uses this to queue a Git-based Linux agent update.
|
||||
|
||||
Flow:
|
||||
|
||||
1. Panel sends an encrypted payload containing repo URL, branch, source folder, optional Git path, optional backup path, and optional admin post-update command.
|
||||
2. Agent validates the payload.
|
||||
3. Agent writes `gsp_component_update_<timestamp>.sh` under the agent run directory.
|
||||
4. The updater script runs detached in `screen`.
|
||||
5. The script clones the configured branch into staging.
|
||||
6. It copies only the configured Linux agent source folder, usually `Agent_Linux`.
|
||||
7. It preserves `Cfg/`, `ServerFiles/`, `Schedule/`, logs, screen logs, `steamcmd/`, `startups/`, temporary folders, backups, and PID files.
|
||||
8. It validates the updated `ogp_agent.pl` with `perl -c`.
|
||||
9. It restarts `ogp_agent.service` through `systemd` if available, otherwise uses the existing `screen` startup fallback.
|
||||
|
||||
The agent returns `queued` immediately with the log path `gsp_component_update.log`. A queued response means the updater launched; check the log for final success/failure.
|
||||
|
||||
## Linux-Specific Notes
|
||||
|
||||
- The Linux agent uses `screen` and `sudo_exec_without_decrypt`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue