From 43b7ea386f648196ca54e7c77c42cd78a56722bf Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 25 Sep 2026 15:25:43 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=200.10=20=D1=83=D0=B1=D0=B8=D1=80?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D0=B9=20?= =?UTF-8?q?=D1=8D=D0=BA=D1=80=D0=B0=D0=BD-=D0=B4=D0=B0=D1=88=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=B4=20=D0=BD=D0=B0=20tty1=20=D0=B8=20=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0=D0=B5=D1=82=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=87=D0=BD=D1=8B=D0=B9=20=D0=B2=D1=85=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019LEUXMcdZo7b87mjkUsPgg --- scripts/virtuality-ctl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/virtuality-ctl b/scripts/virtuality-ctl index 395f905..404e3d7 100755 --- a/scripts/virtuality-ctl +++ b/scripts/virtuality-ctl @@ -319,9 +319,21 @@ harden_vnc() { done < <(virsh list --all --name 2>/dev/null) } +# Nodes installed before 0.11 had a text dashboard on tty1 instead of the login prompt. +cleanup_legacy() { + if [[ -f "${UNIT_DIR}/virtuality-console-dashboard.service" ]]; then + systemctl disable --now virtuality-console-dashboard.service >/dev/null 2>&1 || true + rm -f "${UNIT_DIR}/virtuality-console-dashboard.service" /usr/local/bin/virtuality-console-dashboard + systemctl daemon-reload + systemctl enable --now getty@tty1.service >/dev/null 2>&1 || true + log "legacy tty1 console dashboard removed" + fi +} + cmd_reconfigure() { need_root reconfigure [[ -d "$APP_DIR" ]] || die "панель не установлена: ${APP_DIR} не найден" + cleanup_legacy write_units apply_firewall harden_vnc