Use $CONTAINER instead of $RELEASE for configuring /etc/hosts
authorSergio Jimenez <sergio.jimenez@teradata.com>
Wed, 2 Apr 2014 07:33:01 +0000 (09:33 +0200)
committerSergio Jimenez <sergio.jimenez@teradata.com>
Wed, 2 Apr 2014 07:33:01 +0000 (09:33 +0200)
debian/vagrant-lxc-fixes.sh

index fb2d58cbcd4a1c79fa5028f9f23456a3c5a84836..affa6f0ceba7064766038b6654acfea50dfb5f24 100755 (executable)
@@ -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