Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang.
This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.
--- Begin Message ---HI, Juri, I don't see how that works, the hostname is going to end up being the hostname of the FAI server, isn't it? -----Original Message----- From: Juri Grabowski <fai-supp...@lihas.de> Sent: Tuesday, April 26, 2022 5:08 PM To: fully automatic installation for Linux <linux-fai@uni-koeln.de> Cc: Marc Hoppins <marc.hopp...@eset.com> Subject: Re: 50-host-classes EXTERNAL Hello, Maybe you are looking for something like that: #! /bin/bash MYDOMAINNAME=$(hostname -d) MYFQDN=$(hostname -f) case $MYFQDN in fqdnhost.example.com) echo "EXAMPLECLASS1" ;; *) echo "FAIBASE DEBIAN DEMO" ;; esac case $MYDOMAINNAME in mydemodomain2.example.com) echo -en "DOMCLASS2 " case $HOSTNAME in demohost|client*) echo "EXAMPLECLASS2" ;; *) echo "FAIBASE DEBIAN DEMO" ;; esac ;; mydemodomain3.example.com) case $HOSTNAME in demohost|client*) echo "EXAMPLECLASS3" ;; *) echo "FAIBASE DEBIAN DEMO" ;; esac ;; esac Best Regards, gratuxri
--- End Message ---