main
parent
44a0afe3c8
commit
cd2059e987
|
|
@ -393,7 +393,7 @@ OVR
|
||||||
|
|
||||||
# Estado tailscale
|
# Estado tailscale
|
||||||
tailscale_status=$(pct exec "$vmid" -- sh -c "$check_tailscale_status" 2>&1)
|
tailscale_status=$(pct exec "$vmid" -- sh -c "$check_tailscale_status" 2>&1)
|
||||||
if echo "$tailscale_status" | grep -q "running"; then
|
if echo "$tailscale_status" | grep -q "active"; then
|
||||||
tailscale_note="tailscale UP"
|
tailscale_note="tailscale UP"
|
||||||
elif echo "$tailscale_status" | grep -q "notinstalled"; then
|
elif echo "$tailscale_status" | grep -q "notinstalled"; then
|
||||||
tailscale_note="tailscale NOT INSTALLED"
|
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
|
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
|
# Re-chequear estado tras el intento
|
||||||
tailscale_status=$(pct exec "$vmid" -- sh -c "$check_tailscale_status" 2>&1)
|
tailscale_status=$(pct exec "$vmid" -- sh -c "$check_tailscale_status" 2>&1)
|
||||||
if echo "$tailscale_status" | grep -q "running"; then
|
if echo "$tailscale_status" | grep -q "active"; then
|
||||||
tailscale_note="tailscale UP"
|
tailscale_note="tailscale UP"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue