Merge "Update system hosts file to understand local domainnames"
This commit is contained in:
commit
32920834c0
11
elements/manila-ubuntu-core/post-install.d/50-update-hosts-config
Executable file
11
elements/manila-ubuntu-core/post-install.d/50-update-hosts-config
Executable 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
|
Loading…
Reference in New Issue
Block a user