mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Introduce roles/tailscale w/ /usr/bin/iiab-vpn etc
This commit is contained in:
parent
814a97be9c
commit
c7000f330b
35 changed files with 265 additions and 66 deletions
|
@ -79,8 +79,13 @@ echo
|
|||
/opt/iiab/iiab/scripts/iiab-apps-to-be-installed > /dev/null
|
||||
echo "$(df -h /) ZIMs: $(ls /library/zims/content/ | wc -l) OER2Go: $(ls /library/www/html/modules/ | wc -l) Apps2B: $(cat /tmp/iiab-apps-to-be-installed | wc -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
|
||||
#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
|
||||
echo $(ip -o link show | awk -F': ' '{print $2}') # Better order than: ls -rt /sys/class/net
|
||||
grep "^openvpn_enabled:" /etc/iiab/local_vars.yml
|
||||
grep "^openvpn_handle:" /etc/iiab/local_vars.yml
|
||||
echo $(echo $(hostname -A) $(hostname -a) | xargs -n1 | sort | uniq)
|
||||
hostname -I
|
||||
echo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue