mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-16 15:03:01 +01:00
- Request metadata via website Report issue button instead of JSON in repo - PRs now include only 2 files: ct/*.sh and install/*-install.sh - Update README, GUIDE, CONTRIBUTING, AI.md, CODE-AUDIT, templates - Fix docs/ct README link from CONTRIBUTION_GUIDE to contribution/README Made-with: Cursor
42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
# 🧪 Code Audit: LXC Script Flow
|
|
|
|
This guide explains the current execution flow and what to verify during reviews.
|
|
|
|
## Execution Flow (CT + Install)
|
|
|
|
1. `ct/appname.sh` runs on the Proxmox host and sources `misc/build.func`.
|
|
2. `build.func` orchestrates prompts, container creation, and invokes the install script.
|
|
3. Inside the container, `misc/install.func` exposes helper functions via `$FUNCTIONS_FILE_PATH`.
|
|
4. `install/appname-install.sh` performs the application install.
|
|
5. The CT script prints the completion message.
|
|
|
|
## Audit Checklist
|
|
|
|
### CT Script (ct/)
|
|
|
|
- Sources `misc/build.func` from `community-scripts/ProxmoxVE/main` (setup-fork.sh updates for forks).
|
|
- Uses `check_for_gh_release` + `fetch_and_deploy_gh_release` for updates.
|
|
- No Docker-based installs.
|
|
|
|
### Install Script (install/)
|
|
|
|
- Sources `$FUNCTIONS_FILE_PATH`.
|
|
- Uses `tools.func` helpers (setup\_\*).
|
|
- Ends with `motd_ssh`, `customize`, `cleanup_lxc`.
|
|
|
|
### Website Metadata
|
|
|
|
- Website metadata for new/updated scripts is requested via the website (Report issue on script page) where applicable.
|
|
|
|
### Testing
|
|
|
|
- Test via curl from your fork (CT script only).
|
|
- Wait 10-30 seconds after push.
|
|
|
|
## References
|
|
|
|
- `docs/contribution/templates_ct/AppName.sh`
|
|
- `docs/contribution/templates_install/AppName-install.sh`
|
|
- `docs/contribution/templates_json/AppName.json`
|
|
- `docs/contribution/GUIDE.md`
|