From 9da2a81a7aa95010dffccfaca2b5e859bee0e8fd Mon Sep 17 00:00:00 2001 From: Johannes Feichtner Date: Sat, 3 Dec 2022 23:56:35 +0100 Subject: [PATCH] Read FQDN from hostname command The previous command stopped working with ESXi 8 --- renew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renew.sh b/renew.sh index dbd712c..14f4c29 100644 --- a/renew.sh +++ b/renew.sh @@ -3,7 +3,7 @@ # Copyright (c) Johannes Feichtner # 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")") LOCALSCRIPT=$(basename "$0")