Permalink
Browse files

Fix motd erb

  • Loading branch information...
1 parent 7fac0f5 commit 86ade12d47dcbe00a8429c830d50085e2b752312 Ben Rockwood committed Sep 20, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 cookbooks/smartos/recipes/default.rb
  2. +1 −1 cookbooks/smartos/templates/default/motd.erb
@@ -40,7 +40,7 @@
## Set the Hostname
##
if node.attribute?("hostname")
- execute "Set hostname" do
+ execute "Set hostname to #{node[:hostname]}" do
command "/usr/bin/hostname #{node[:hostname]} && /usr/bin/hostname > /etc/nodename"
only_if "grep unknown /etc/nodename"
end
@@ -2,5 +2,5 @@
___ _ __ ___ __ _ _ __| |_ ___ ___
/ __| '_ ` _ \ / _` | '__| __/ _ \/ __| <%= node[:hostname] %>
\__ \ | | | | | (_| | | | || (_) \__ \ <%= node[:platform_build] %>
-|___/_| |_| |_|\__,_|_| \__\___/|___/ <%= node[:dmi][:system][:product] %> (%= node[:dmi][:system][:serial_number] %>)
+|___/_| |_| |_|\__,_|_| \__\___/|___/ <%= node[:dmi][:system][:product] %> (<%= node[:dmi][:system][:serial_number] %>)

0 comments on commit 86ade12

Please sign in to comment.