alexandrev-tibco 2025-08-31 09:37:05 +02:00
parent 717cc01c3e
commit 1c06153aa5
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ collect_lxc_summary() {
local vmid="$1"
local name ip issues=""
name=$(pct exec "$vmid" -- sh -c "hostname -s 2>/dev/null || cat /etc/hostname 2>/dev/null || echo lxc-$vmid" 2>/dev/null | head -n1 | tr -d '\r')
ip=$(pct exec "$vmid" -- sh -c '(hostname -i 2>/dev/null || true;)')
ip=$(pct exec "$vmid" -- sh -c '
hostname -i 2>/dev/null || true; ')
# Tailcale check
ts_issue=$(check_lxc_tailscale_issue "$vmid")
if [ -n "$ts_issue" ]; then