From 4dc3cf4ad5366c1f0acbce61931db5cdee406b6a Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Mon, 2 Sep 2024 19:26:53 +0200 Subject: [PATCH] last hostname --- Smoke/IpaInstallAndStart/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Smoke/IpaInstallAndStart/test.sh b/Smoke/IpaInstallAndStart/test.sh index 6cd2bf9..87904e1 100755 --- a/Smoke/IpaInstallAndStart/test.sh +++ b/Smoke/IpaInstallAndStart/test.sh @@ -31,7 +31,11 @@ prepareIpaServer() fi rlRun "dnf -y install freeipa-server-dns" - HOSTNAME=`hostname --all-fqdns | awk '{print $NF}'` + ORIG_HOSTNAME=${HOSTNAME} +# there is longer name at AWS, more than 64char + hostnamectl set-hostname ipa.ipa + HOSTNAME=`hostname|tail -n1` +# not needed after change ^ if echo $HOSTNAME | grep '\.' then rlLog "Using full hostname $HOSTNAME"