Read FQDN from hostname command

The previous command stopped working with ESXi 8
This commit is contained in:
Johannes Feichtner
2022-12-03 23:56:35 +01:00
parent a58778311d
commit 9da2a81a7a

View File

@@ -3,7 +3,7 @@
# Copyright (c) Johannes Feichtner <johannes@web-wack.at> # Copyright (c) Johannes Feichtner <johannes@web-wack.at>
# Released under the GNU GPLv3 License. # Released under the GNU GPLv3 License.
DOMAIN=$(grep "adv/Misc/HostName" /etc/vmware/esx.conf | awk '{print $3}' | xargs) DOMAIN=$(hostname -f)
LOCALDIR=$(dirname "$(readlink -f "$0")") LOCALDIR=$(dirname "$(readlink -f "$0")")
LOCALSCRIPT=$(basename "$0") LOCALSCRIPT=$(basename "$0")