r7939: fix default hostname in provision
authorAndrew Tridgell <tridge@samba.org>
Mon, 27 Jun 2005 05:28:09 +0000 (05:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:53 +0000 (13:18 -0500)
source/setup/provision.pl

index 3eba4ac248437d6a3344b17de2275f3589583f02..c0b5a6ea0b0ac54542906c9f18598ab10d2e9c6b 100755 (executable)
@@ -4,7 +4,7 @@ use strict;
 use Socket;
 use Getopt::Long;
 
-my $opt_hostname = `hostname`;
+my $opt_hostname = `hostname | cut -d. -f1`;
 chomp $opt_hostname;
 my $opt_hostip;
 my $opt_realm;