Use $CONTAINER instead of $RELEASE for configuring /etc/hosts

This commit is contained in:
Sergio Jimenez 2014-04-02 09:33:01 +02:00
parent a248c4c4bc
commit 550f470ffd

View file

@ -20,7 +20,7 @@ if [ ${DISTRIBUTION} = 'debian' ]; then
# Fixes some networking issues # Fixes some networking issues
# See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info # See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info
sed -i -e "s/\(127.0.0.1\s\+localhost\)/\1\n127.0.1.1\t${RELEASE}-base\n/g" ${ROOTFS}/etc/hosts sed -i -e "s/\(127.0.0.1\s\+localhost\)/\1\n127.0.1.1\t${CONTAINER}\n/g" ${ROOTFS}/etc/hosts
# Ensures that `/tmp` does not get cleared on halt # Ensures that `/tmp` does not get cleared on halt
# See https://github.com/fgrehm/vagrant-lxc/issues/68 for more info # See https://github.com/fgrehm/vagrant-lxc/issues/68 for more info