From f3570953c99fd1d5cfb4a2005cfcda114d081c02 Mon Sep 17 00:00:00 2001 From: yellowcooln <12516003+yellowcooln@users.noreply.github.com> Date: Sat, 29 Aug 2026 22:45:09 -0400 Subject: [PATCH] fix: use pct set --notes for container notes (proper Proxmox API) --- scripts/proxmox-install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/proxmox-install.sh b/scripts/proxmox-install.sh index a5a9447..8fce5a6 100644 --- a/scripts/proxmox-install.sh +++ b/scripts/proxmox-install.sh @@ -360,9 +360,9 @@ if [[ "$INSTALL_CONSOLE" == "true" ]]; then fi # ── Container notes ─────────────────────────────────────────────────────── -PROXMOX_NOTES_DIR="/var/lib/pve-manager/notes" -if [[ -d "$PROXMOX_NOTES_DIR" ]]; then - cat > "${PROXMOX_NOTES_DIR}/${CTID}.html" <<'NOTES' +if command -v pct &>/dev/null; then + NOTES_TMP=$(mktemp) + cat > "$NOTES_TMP" <<'NOTES'
NOTES + NOTES_TEXT=$(cat "$NOTES_TMP") + rm -f "$NOTES_TMP" + pct set "$CTID" --notes "$NOTES_TEXT" + msg_ok "Container notes set" fi # ── Get container IP ──────────────────────────────────────────────────────