This covers probably more case:
- on Linux we've already $HOSTNAME
- on FreeBSD we can read $HOST
- on macOS we can call hostname
There is no need to query systemd flavour of hostname, as Linux systems
already publish the environment variable.
Differential D3162
Get hostname in $HOST or through `hostname` dereckson on May 31 2023, 15:39. Authored by Tags None Referenced Files
Subscribers None
Details
This covers probably more case:
There is no need to query systemd flavour of hostname, as Linux systems Tested on macOS
Diff Detail
|