From 5f12ea754386a4b29dd23dbf4e41c65b9faf6526 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Wed, 15 Feb 2017 14:26:28 +0100 Subject: [PATCH] fix problem with ext ip resolving --- installer/etc/rc.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/etc/rc.local b/installer/etc/rc.local index 301a8abb..cbea9ea0 100755 --- a/installer/etc/rc.local +++ b/installer/etc/rc.local @@ -2,7 +2,7 @@ # Let's add the first local ip to the /etc/issue and external ip to ews.ip file source /etc/environment myLOCALIP=$(hostname -I | awk '{ print $1 }') -myEXTIP=$(curl -s myexternalip.com/raw) +myEXTIP=$(dig +short myip.opendns.com @resolver1.opendns.com) sed -i "s#IP:.*#IP: $myLOCALIP ($myEXTIP)#" /etc/issue sed -i "s#SSH:.*#SSH: ssh -l tsec -p 64295 $myLOCALIP#" /etc/issue sed -i "s#WEB:.*#WEB: https://$myLOCALIP:64297#" /etc/issue