diff options
Diffstat (limited to 'configgen/bin/make-config.pl')
-rwxr-xr-x | configgen/bin/make-config.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configgen/bin/make-config.pl b/configgen/bin/make-config.pl index 0e116f5eb45..7b1f1f833ab 100755 --- a/configgen/bin/make-config.pl +++ b/configgen/bin/make-config.pl @@ -66,9 +66,11 @@ sub findhost { my $tmp = $ENV{'VESPA_HOSTNAME'}; if (!defined $tmp) { $tmp = `vespa-detect-hostname` or die "Could not detect hostname\n"; + chomp $tmp; } system("vespa-validate-hostname $tmp"); ( $? == 0 ) or die "Could not validate hostname\n"; + return $tmp; } BEGIN { |