fnichol/knife-server — pull request #3 by iafonov (2012-07-12 06:51:30+00:00)
Title: Set server hostname even if /etc/hostname is not present.

On Ubuntu images from Linode `/etc/hostname` file is not present and script fails to set hostname due to sed's behavior - if file is not present or empty it won't do a substitution. I'm bad at sed's black magic so I've added a straightforward `echo $hostname > /etc/hostname` if it is wrong or it could be done in a better way with sed feel free to change it. As I understand script should just set the hostname file contents independent of whether it is present or already have something in it in this case I think `echo` is just fine.

Thanks for a great tool!