Commit e31ab3fa authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Christos Stavrakakis
Browse files

Minor fix in setup_hosts (sed -i /etc/hosts)


Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 88a22bc8
......@@ -281,7 +281,7 @@ def setup_resolv_conf():
def setup_hosts():
debug(env.host, "Tweaking /etc/hosts and ssh_config files...")
try_run("echo StrictHostKeyChecking no >> /etc/ssh/ssh_config")
cmd = " sed -i 's/^127.*/127.0.0.1 localhost/g' /etc/hosts "
cmd = " sed -i 's/^127.*/127.0.0.1 localhost/' /etc/hosts "
try_run(cmd)
host_info = env.env.ips_info[env.host]
cmd = "hostname %s" % host_info.hostname
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment