summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-27 05:28:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:53 -0500
commita6b242639d7b5c0f20202cc40efc9eab24316ae7 (patch)
tree637218325f13ce1bd060021fad42a7636a09dfec /source4/setup
parente1e95277c0c7f86b15acd70ee3151ec2b3131c5e (diff)
downloadsamba-a6b242639d7b5c0f20202cc40efc9eab24316ae7.tar.gz
samba-a6b242639d7b5c0f20202cc40efc9eab24316ae7.tar.bz2
samba-a6b242639d7b5c0f20202cc40efc9eab24316ae7.zip
r7939: fix default hostname in provision
(This used to be commit 79d174005e3508745ea8b0bda2321abd184bf68b)
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/provision.pl2
1 files changed, 1 insertions, 1 deletions
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;