Skip to content
Snippets Groups Projects
Commit a1e2e63a authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Only keep localhost for 127.0.0.1"

parents 432c12fb 5f797329
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ function prep_work { ...@@ -61,7 +61,7 @@ function prep_work {
# This removes the fqdn from /etc/hosts's 127.0.0.1. This name.local will # This removes the fqdn from /etc/hosts's 127.0.0.1. This name.local will
# resolve to the public IP instead of localhost. # 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 if is_centos; then
yum -y install epel-release yum -y install epel-release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment