From f6dc8e0970a014e39a94ff049575566f331f6190 Mon Sep 17 00:00:00 2001 From: caoimhinr Date: Sun, 12 Apr 2026 21:05:56 +0200 Subject: [PATCH] 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. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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