mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-10-30 19:51:59 +01:00
fix: use pct set --notes for container notes (proper Proxmox API)
This commit is contained in:
1 parent
ca4b77a452
commit
f3570953c9
1 file changed
+7
-3
@@ -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 ──────────────────────────────────────────────────────
|
||||
|
||||
Reference in new issue
Block a user