From a6b242639d7b5c0f20202cc40efc9eab24316ae7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Jun 2005 05:28:09 +0000 Subject: r7939: fix default hostname in provision (This used to be commit 79d174005e3508745ea8b0bda2321abd184bf68b) --- source4/setup/provision.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/setup/provision.pl') diff --git a/source4/setup/provision.pl b/source4/setup/provision.pl index 3eba4ac248..c0b5a6ea0b 100755 --- a/source4/setup/provision.pl +++ b/source4/setup/provision.pl @@ -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; -- cgit