Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* fix hostname settings

  • Loading branch information...
commit eec1965083a5060cf17a7376f37447cb2eab7bff 1 parent e2756d5
@dudemeister authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system.rb
View
2  system.rb
@@ -12,7 +12,7 @@ def hostname
}
meet {
sudo "echo #{var :hostname, :default => shell('hostname')} > /etc/hostname"
- sudo "sed -ri 's/^127.0.0.1.*$/127.0.0.1 protonet #{var(:hostname)} #{var(:hostname).sub(/\..*$/, '')} localhost.localdomain localhost/' /etc/hosts"
+ sudo "sed -ri 's/^127.0.0.1.*$/127.0.0.1 #{var(:hostname)} #{var(:hostname).sub(/\..*$/, '')} protonet localhost.localdomain localhost/' /etc/hosts"
sudo "hostname #{var :hostname}"
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.