Skip to content

Commit

Permalink
* fix hostname settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dudemeister committed Jan 19, 2012
1 parent e2756d5 commit eec1965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system.rb
Expand Up @@ -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
Expand Down

0 comments on commit eec1965

Please sign in to comment.