Permalink
Browse files

Make hostname updating more flexible

  • Loading branch information...
1 parent 86ade12 commit 23d3ebea91a22f3bc328ad68662b77a32d2044b2 Ben Rockwood committed Sep 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookbooks/smartos/recipes/default.rb
@@ -42,7 +42,7 @@
if node.attribute?("hostname")
execute "Set hostname to #{node[:hostname]}" do
command "/usr/bin/hostname #{node[:hostname]} && /usr/bin/hostname > /etc/nodename"
- only_if "grep unknown /etc/nodename"
+ not_if "grep #{node[:hostname]} /etc/nodename"
end
end

0 comments on commit 23d3ebe

Please sign in to comment.