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

Merge pull request #3829 from holta/iiab-summary_vpn_cleanup

iiab-summary: Clean output, when tailscale has no IP
This commit is contained in:
A Holt 2024-10-11 14:57:28 -04:00 committed by GitHub
commit 5a9b929901
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