1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

iiab-summary: Clean output, when tailscale has no IP

This commit is contained in:
A Holt 2024-10-11 14:49:58 -04:00 committed by GitHub
parent 3651ac666e
commit aedc893bd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,8 @@ echo "$(df -h /) ZIMs: $(ls /library/zims/content/ | wc -l) OER2Go: $(ls /l
echo
#grep "^openvpn_handle:" /etc/iiab/local_vars.yml
#grep "^tailscale_installed:" /etc/iiab/iiab_state.yml
if [[ $(command -v /usr/bin/tailscale) ]]; then
#if [[ $(command -v /usr/bin/tailscale) ]]; then
if tailscale ip &> /dev/null; then
#echo "VPN: $(tailscale ip) $(tailscale whois --json $(tailscale ip -1) | jq -r .Node.Tags[])"
echo "VPN: $(tailscale ip) $(tailscale status --json | jq -r .Self.Tags[])"
fi