diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-07-06 22:36:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 22:36:59 +0300 |
commit | 7a69f992d38799c906725d602207b691a2a8f4ad (patch) | |
tree | c61804a707d89271569e4f9d5a0ced5bc841c587 /static/nextcloud.sh | |
parent | 4fb19efd3d62c5091d842079f0177afc44948f8e (diff) |
Revert "[very much WIP] Official VM (#1302)" (#1311)
This reverts commit 4fb19efd3d62c5091d842079f0177afc44948f8e.
Diffstat (limited to 'static/nextcloud.sh')
-rw-r--r-- | static/nextcloud.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/static/nextcloud.sh b/static/nextcloud.sh new file mode 100644 index 00000000..26f4c09e --- /dev/null +++ b/static/nextcloud.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# T&M Hansson IT AB © - 2020, https://www.hanssonit.se/ + +WANIP6=$(curl -s -k -m 5 https://ipv6bot.whatismyipaddress.com) +WANIP4=$(curl -s -k -m 5 https://ipv4bot.whatismyipaddress.com) +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 |