mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +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:
		
						commit
						5a9b929901
					
				
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue