Document the correct one-line installer
Clarify that the OpenCode CT script already sources build.func so the published one-liner works without hitting argument length issues.
This commit is contained in:
parent
a2dc1c0f57
commit
f6dc8e0970
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -28,6 +28,14 @@ Run on the Proxmox host as `root`:
|
||||||
bash ct/opencode.sh
|
bash ct/opencode.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Community-scripts style one-liner:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash -c "$(curl -fsSL https://forgejo.welvaert.org/caoimhinr/pve_community/raw/branch/main/ct/opencode.sh)"
|
||||||
|
```
|
||||||
|
|
||||||
|
The previous two-step `build.func` wrapper is not needed here because `ct/opencode.sh` already downloads and sources `build.func` itself.
|
||||||
|
|
||||||
Example with overrides:
|
Example with overrides:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -44,6 +52,12 @@ OPENCODE_WEB_PORT=4096 \
|
||||||
bash ct/opencode.sh
|
bash ct/opencode.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
One-liner with overrides:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
CTID=220 MEMORY=8192 CORES=4 DISK_GB=24 OPENCODE_USER=dev bash -c "$(curl -fsSL https://forgejo.welvaert.org/caoimhinr/pve_community/raw/branch/main/ct/opencode.sh)"
|
||||||
|
```
|
||||||
|
|
||||||
You can also use the upstream-style `var_*` overrides, for example `var_cpu`, `var_ram`, `var_disk`, `var_brg`, `var_net`, `var_ctid`, and `var_hostname`.
|
You can also use the upstream-style `var_*` overrides, for example `var_cpu`, `var_ram`, `var_disk`, `var_brg`, `var_net`, `var_ctid`, and `var_hostname`.
|
||||||
|
|
||||||
### Common Variables
|
### Common Variables
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue