fix: use pct set --notes for container notes (proper Proxmox API)

This commit is contained in:
yellowcooln committed 2026-08-29 22:45:09 -04:00
1 parent ca4b77a452
commit f3570953c9
1 file changed
+7 -3
+7 -3
View File
@@ -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'
<div align="center">
<a href="https://openhop.dev/" target="_blank" rel="noopener noreferrer">
<img
@@ -454,6 +454,10 @@ if [[ -d "$PROXMOX_NOTES_DIR" ]]; then
</span>
</div>
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 ──────────────────────────────────────────────────────