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:
parent
3651ac666e
commit
aedc893bd1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue