diff options
| author | Martin André <m.andre@redhat.com> | 2016-06-17 16:04:47 +0200 |
|---|---|---|
| committer | Martin André <m.andre@redhat.com> | 2016-06-17 16:04:47 +0200 |
| commit | 5f7973292767b40403b775627b7fe13b7ab1ae41 (patch) | |
| tree | 4c8a7a8687ef92cd7875f901f36d24aab3bc56f6 /dev | |
| parent | cbd67d3cf7d8dfff572ea491e09c5d30d5d626d7 (diff) | |
| download | kolla-5f7973292767b40403b775627b7fe13b7ab1ae41.tar.gz kolla-5f7973292767b40403b775627b7fe13b7ab1ae41.zip | |
Only keep localhost for 127.0.0.1
The regex used previously would keep the short hostname (hostname -s)
on the 127.0.0.1 line.
Reset the 127.0.0.1 line to keep only localhost.
TrivialFix
Change-Id: I90bdec6793ac5b2d304e178e5114369b7b3b9626
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/vagrant/bootstrap.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh index ea9b3d0e2..8df696992 100644 --- a/dev/vagrant/bootstrap.sh +++ b/dev/vagrant/bootstrap.sh @@ -61,7 +61,7 @@ function prep_work { # This removes the fqdn from /etc/hosts's 127.0.0.1. This name.local will # resolve to the public IP instead of localhost. - sed -i -r "s/^(127\.0\.0\.1\s+)(.*) `hostname` (.+)/\1 \3/" /etc/hosts + sed -i -r "s,^127\.0\.0\.1\s+.*,127\.0\.0\.1 localhost localhost.localdomain localhost4 localhost4.localdomain4," /etc/hosts if is_centos; then yum -y install epel-release |
