hostname back to origin

This commit is contained in:
psklenar@redhat.com 2024-09-12 09:27:20 +02:00
commit 74161ae3cb

View file

@ -33,8 +33,8 @@ prepareIpaServer()
rlRun "dnf -y install freeipa-server-dns"
ORIG_HOSTNAME=${HOSTNAME}
# there is longer name at AWS, more than 64char
hostnamectl set-hostname ipa.ipa
echo '127.0.0.1 ipa.ipa' >> /etc/hosts
#hostnamectl set-hostname ipa.ipa
#echo '127.0.0.1 ipa.ipa' >> /etc/hosts
HOSTNAME=`hostname|tail -n1`
# not needed after change ^
if echo $HOSTNAME | grep '\.'