13 lines
319 B
Bash
Executable File
13 lines
319 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Check whether Tailscale is installed and running
|
|
# omarchy:hidden=true
|
|
|
|
set -euo pipefail
|
|
|
|
if omarchy-cmd-present tailscale && tailscale status --json >/dev/null 2>&1; then
|
|
exit 0
|
|
fi
|
|
|
|
systemctl is-active --quiet tailscaled.service >/dev/null 2>&1 || pgrep -x tailscaled >/dev/null 2>&1
|