Merge pull request #5 from tripledes/fix_debian_hostname
Use $CONTAINER instead of $RELEASE for configuring /etc/hosts
This commit is contained in:
commit
653d0bae70
1 changed files with 1 additions and 1 deletions
2
debian/vagrant-lxc-fixes.sh
vendored
2
debian/vagrant-lxc-fixes.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue