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