Merge "Update system hosts file to understand local domainnames"

This commit is contained in:
Jenkins 2016-02-04 06:41:28 +00:00 committed by Gerrit Code Review
commit 32920834c0
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# Update 'hosts' file with dn-ip predefinitions
hosts_config="/etc/hosts"
echo "127.0.0.1 localhost localhost.localdomain" >> $hosts_config