You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The coreutils version of hostname, installed by fink, doesn't take an '-s' flag:
coolhand$ /sw/bin/hostname --help
Usage: /sw/bin/hostname [NAME]
or: /sw/bin/hostname OPTION
Print or set the hostname of the current system.
--help display this help and exit
--version output version information and exit
Report bugs to <bug-coreutils@gnu.org>.
The BSD version of the command does.
I changed the last part of /usr/local/lib/ruby/gems/1.8/gems/opscode-ohai-0.1.2/lib/ohai/plugins/darwin/hostname.rb to read:
fqdn from("hostname")
begin
hostname from("hostname -s")
rescue
hostname fqdn.gsub(/..*/, "")
end
The text was updated successfully, but these errors were encountered:
The coreutils version of hostname, installed by fink, doesn't take an '-s' flag:
The BSD version of the command does.
I changed the last part of /usr/local/lib/ruby/gems/1.8/gems/opscode-ohai-0.1.2/lib/ohai/plugins/darwin/hostname.rb to read:
fqdn from("hostname")
begin
hostname from("hostname -s")
rescue
hostname fqdn.gsub(/..*/, "")
end
The text was updated successfully, but these errors were encountered: