vm/static/nextcloud.sh
Daniel Hansson c4b764acbd
happy new year (#2278)
Signed-off-by: enoch85 <github@hanssonit.se>
2022-04-22 18:27:42 +02:00

20 lines
426 B
Bash

#!/bin/bash
# T&M Hansson IT AB © - 2022, https://www.hanssonit.se/
WANIP6=$(curl -s -k -m 5 -6 https://api64.ipify.org)
WANIP4=$(curl -s -k -m 5 -4 https://api64.ipify.org)
ADDRESS=$(hostname -I | cut -d ' ' -f 1)
clear
figlet -f small Nextcloud
echo "https://www.hanssonit.se/nextcloud-vm"
echo
echo
echo "Hostname: $(hostname -s)"
echo "WAN IPv4: $WANIP4"
echo "WAN IPv6: $WANIP6"
echo "LAN IPv4: $ADDRESS"
echo
exit 0