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 ──────────────────────────────────────────────────────