Permalink
Browse files

* fix hostname settings

  • Loading branch information...
1 parent e2756d5 commit eec1965083a5060cf17a7376f37447cb2eab7bff @dudemeister committed Jan 19, 2012
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

0 comments on commit eec1965

Please sign in to comment.