jackburton79 / ocs-agent

Lite inventory agent (compatibile with ocsinventory-ng and glpi)
GNU General Public License v3.0
15 stars 6 forks source link

Feed domain name from hostname fqdn when possible. #16

Closed jonathan-orsel closed 7 years ago

jonathan-orsel commented 7 years ago

In some configuration the command domainname didn't return the expected result but the domain can be deducted from the hostname command :

[user@host agent]$ domainname
(none)
[user@host agent]$ hostname
host.domain.name

For that case, a minor change can do the trick.

jackburton79 commented 7 years ago

Thank you!