fixes
This commit is contained in:
parent
5ead40a761
commit
6a15b114e6
23 changed files with 269 additions and 87 deletions
|
|
@ -7,6 +7,10 @@
|
|||
## Important Files
|
||||
|
||||
- `Agent-Windows/OGP64/OGP/ogp_agent.pl`
|
||||
- `Agent-Windows/OGP64/OGP/Cfg/Config.pm`
|
||||
- `Agent-Windows/OGP64/OGP/Cfg/Preferences.pm`
|
||||
- `Agent-Windows/OGP64/OGP/Cfg/bash_prefs.cfg`
|
||||
- `Agent-Windows/OGP64/OGP/Cfg/*.default`
|
||||
- `Agent-Windows/php-query/`
|
||||
- `Agent-Windows/ArmaBE/`
|
||||
- `Agent-Windows/Cfg/`
|
||||
|
|
@ -61,24 +65,31 @@ The Cygwin-side helper performs the shell work:
|
|||
|
||||
1. enter `/OGP`
|
||||
2. normalize CRLF to LF for `.pl`, `.pm`, `.sh`, and `.cfg` files under `/OGP`
|
||||
3. source `/OGP/Cfg/bash_prefs.cfg`
|
||||
4. optionally update only the Windows agent file from Forgejo when `agent_auto_update=1`
|
||||
5. backup the current `/OGP/ogp_agent.pl`
|
||||
6. validate the updated agent with `perl -c`
|
||||
7. restore the backup if validation fails
|
||||
8. launch `/OGP/ogp_agent.pl`
|
||||
3. create missing `Cfg/Config.pm`, `Cfg/Preferences.pm`, and `Cfg/bash_prefs.cfg` from tracked `.default` files
|
||||
4. strip CRLF and leading whitespace before assignments in `/OGP/Cfg/bash_prefs.cfg`
|
||||
5. source `/OGP/Cfg/bash_prefs.cfg`
|
||||
6. optionally update only the Windows agent file from Forgejo when `agent_auto_update=1`
|
||||
7. backup the current `/OGP/ogp_agent.pl`
|
||||
8. validate downloaded and installed agent files with content checks plus `perl -c`
|
||||
9. restore the backup if validation fails
|
||||
10. launch `/OGP/ogp_agent.pl`
|
||||
|
||||
Default optional update source:
|
||||
|
||||
- repo: `http://forge.runlevelsystems.com/dev/GSP.git`
|
||||
- branch: `Panel-unstable`
|
||||
- source file: `Agent-Windows/OGP64/OGP/ogp_agent.pl` in the current repo layout
|
||||
- raw URL: `http://forge.runlevelsystems.com/dev/GSP/raw/branch/Panel-unstable/Agent-Windows/OGP64/OGP/ogp_agent.pl`
|
||||
- target file: `/OGP/ogp_agent.pl`
|
||||
|
||||
Auto-update failure is non-fatal. Missing `git`, clone failure, missing source file, or failed validation should warn and continue with the current installed agent.
|
||||
Auto-update failure is non-fatal. Missing `curl`/`git`, download failure, clone failure, missing source file, HTTP error-page downloads, empty files, or failed validation should warn and continue with the current installed agent.
|
||||
|
||||
The Windows agent file does not use `DBI` at startup. If a Windows node reports `Can't locate DBI.pm` at line 48, it is a strong signal that a Linux agent file was copied onto the Windows node.
|
||||
|
||||
Required Cygwin Perl packages include `perl`, `perl_vendor`, `perl-HTTP-Daemon`, `perl-Path-Class`, `perl-XML-Parser`, `perl-XML-Simple`, `perl-Archive-Zip`, and `perl-Archive-Extract`. A clean non-Cygwin Linux workstation may fail `perl -c` on these dependencies even though the bundled Windows Cygwin tree contains them.
|
||||
|
||||
Default tracked config files contain placeholders only. Production installs must replace `CHANGE_ME_PANEL_AGENT_KEY`, `web_api_url`, and related values with the values configured in the Panel remote-server record.
|
||||
|
||||
## Status Logic
|
||||
|
||||
Relevant functions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue