diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-05-14 14:43:04 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-05-14 14:43:25 +0000 |
commit | 4503c40245fab0105322110874d01fe379a6b274 (patch) | |
tree | 3ea5f886afbeaf1274002f19e905221e3a94adf3 /config | |
parent | a9d9ef3dc96791185de550702876d49b1fef9557 (diff) |
update perl bootstrap
Diffstat (limited to 'config')
-rwxr-xr-x | config/src/apps/vespa-config/vespa-config.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/src/apps/vespa-config/vespa-config.pl b/config/src/apps/vespa-config/vespa-config.pl index d43016331f4..d651dc2ce39 100755 --- a/config/src/apps/vespa-config/vespa-config.pl +++ b/config/src/apps/vespa-config/vespa-config.pl @@ -59,9 +59,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 { |