From e09194759c847e99e1a76f151e0b14de149398de Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 12 Feb 2008 16:13:06 +0000 Subject: [PATCH] Added non fqdn hostname git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8877 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-client | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index f36c77f77..b573f13de 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -913,10 +913,13 @@ sub register_at_gosa_si_server { unlink($opts_file); } my $opts_file_FH; + my $hostname= $dnsname; + $hostname =~ s/\..*$//; open($opts_file_FH, ">$opts_file"); print $opts_file_FH "MAC=\"$local_mac\"\n"; print $opts_file_FH "IPADDRESS=\"$client_ip\"\n"; - print $opts_file_FH "HOSTNAME=\"$dnsname\"\n"; + print $opts_file_FH "HOSTNAME=\"$hostname\"\n"; + print $opts_file_FH "FQDN=\"$dnsname\"\n"; close($opts_file_FH); last; } else { -- 2.30.2