diff --git a/README.md b/README.md index 2f11475..44b98fc 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,14 @@ Run on the Proxmox host as `root`: 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: ```bash @@ -44,6 +52,12 @@ OPENCODE_WEB_PORT=4096 \ 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`. ### Common Variables