From b411df7a3d11875c215a48650ce7ba38ba27a384 Mon Sep 17 00:00:00 2001 From: alexandrev-tibco Date: Sun, 31 Aug 2025 09:46:51 +0200 Subject: [PATCH] +1 --- manage-lxc-vm-notes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage-lxc-vm-notes.sh b/manage-lxc-vm-notes.sh index 3f6a61f..2e98a41 100755 --- a/manage-lxc-vm-notes.sh +++ b/manage-lxc-vm-notes.sh @@ -393,7 +393,7 @@ OVR # Estado tailscale tailscale_status=$(pct exec "$vmid" -- sh -c "$check_tailscale_status" 2>&1) - if echo "$tailscale_status" | grep -q "active"; then + if echo "$tailscale_status" | grep -Eq "started|active"; then tailscale_note="tailscale UP" elif echo "$tailscale_status" | grep -q "notinstalled"; then tailscale_note="tailscale NOT INSTALLED" @@ -403,7 +403,7 @@ OVR pct exec "$vmid" -- sh -lc 'if command -v tailscale >/dev/null 2>&1; then (sudo -n tailscale up || sudo tailscale up || tailscale up) >/dev/null 2>&1 || true; fi' || true # Re-chequear estado tras el intento tailscale_status=$(pct exec "$vmid" -- sh -c "$check_tailscale_status" 2>&1) - if echo "$tailscale_status" | grep -q "active"; then + if echo "$tailscale_status" | grep -Eq "started|active"; then tailscale_note="tailscale UP" fi fi