Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <daniel@techandme.se>2017-01-05 18:40:59 +0300
committerGitHub <noreply@github.com>2017-01-05 18:40:59 +0300
commitf83f11f46b467d113943148b90631abcec378a96 (patch)
treec700d1629495a7b832aec24456b851e41692d966 /static/nextcloud.sh
parent4d7285c3e1d5486e56ad5d5de9f3b358c5077386 (diff)
Add timeout to curl is WAN does not exist
Diffstat (limited to 'static/nextcloud.sh')
-rw-r--r--static/nextcloud.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/nextcloud.sh b/static/nextcloud.sh
index 6d41b6b4..4198a835 100644
--- a/static/nextcloud.sh
+++ b/static/nextcloud.sh
@@ -1,10 +1,10 @@
#!/bin/bash
-WANIP4=$(dig +short myip.opendns.com @resolver1.opendns.com)
-WANIP6=$(curl -s https://6.ifcfg.me/)
+WANIP4=$(curl -s ipinfo.io/ip -m 5)
+WANIP6=$(curl -s 6.ifcfg.me -m 5)
ADDRESS=$(hostname -I | cut -d ' ' -f 1)
clear
figlet -f small Nextcloud
-echo " https://www.nextcloud.com"
+echo " https://www.nextcloud.com"
echo
echo
echo