From 550f470ffd3e1bcce9c7587699da0dd9dcd3eb62 Mon Sep 17 00:00:00 2001 From: Sergio Jimenez Date: Wed, 2 Apr 2014 09:33:01 +0200 Subject: [PATCH] Use $CONTAINER instead of $RELEASE for configuring /etc/hosts --- debian/vagrant-lxc-fixes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/vagrant-lxc-fixes.sh b/debian/vagrant-lxc-fixes.sh index fb2d58c..affa6f0 100755 --- a/debian/vagrant-lxc-fixes.sh +++ b/debian/vagrant-lxc-fixes.sh @@ -20,7 +20,7 @@ if [ ${DISTRIBUTION} = 'debian' ]; then # Fixes some networking issues # 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 # See https://github.com/fgrehm/vagrant-lxc/issues/68 for more info