From 79d8866dd8ad8e1da203877bb2ce2bd810b89f8c Mon Sep 17 00:00:00 2001 From: James Hogarth Date: Jan 30 2014 22:27:58 +0000 Subject: hosts shoudl have external IP so as not to break stuff --- diff --git a/tests/0_common/40_update_hosts.sh b/tests/0_common/40_update_hosts.sh index ad952b7..49fb4b8 100755 --- a/tests/0_common/40_update_hosts.sh +++ b/tests/0_common/40_update_hosts.sh @@ -4,5 +4,5 @@ t_Log "Running $0 - Update /etc/hosts" -echo "127.0.0.1 `hostname` localhost.localdomain" >> /etc/hosts +echo "$(ip a s dev eth0 | awk '$0 ~ /scope global eth0/ {print $2}' | cut -d'/' -f 1) `hostname` " >> /etc/hosts