diff --git a/elements/manila-ubuntu-core/post-install.d/50-update-hosts-config b/elements/manila-ubuntu-core/post-install.d/50-update-hosts-config new file mode 100755 index 0000000..a5dc7eb --- /dev/null +++ b/elements/manila-ubuntu-core/post-install.d/50-update-hosts-config @@ -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