main
parent
b411df7a3d
commit
778d063d6f
|
|
@ -14,7 +14,7 @@ check_lxc_tailscale_issue() {
|
||||||
if command -v systemctl >/dev/null 2>&1; then
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
systemctl is-active --quiet tailscaled || echo tailscale-down
|
systemctl is-active --quiet tailscaled || echo tailscale-down
|
||||||
elif command -v rc-service >/dev/null 2>&1 || [ -e /etc/init.d/tailscaled ]; then
|
elif command -v rc-service >/dev/null 2>&1 || [ -e /etc/init.d/tailscaled ]; then
|
||||||
rc-service tailscaled status >/dev/null 2>&1 || echo tailscale-down
|
rc-service tailscale status >/dev/null 2>&1 || echo tailscale-down
|
||||||
fi
|
fi
|
||||||
' 2>/dev/null | tr -d '\r' | head -n1
|
' 2>/dev/null | tr -d '\r' | head -n1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue