Use uname -n
as default for the HOSTNAME configuration variable.
This commit is contained in:
parent
adc4a3ea82
commit
6b653d4085
@ -139,8 +139,11 @@ Read-only.
|
||||
.It HOSTNAME
|
||||
.Pq Vt single
|
||||
The name of the host running the tinderbox.
|
||||
This is used for cosmetic purposes only.
|
||||
No default value.
|
||||
This defaults to the name reported by the
|
||||
.Fl n
|
||||
option of the
|
||||
.Xr uname 1
|
||||
command, and is only used for cosmetic purposes.
|
||||
.It LOGDIR
|
||||
.Pq Vt single
|
||||
The location of the log directory.
|
||||
|
@ -224,8 +224,7 @@ sub tinderbox($$$) {
|
||||
|
||||
# Fork and start the tinderbox
|
||||
my @args = @{$CONFIG{'OPTIONS'}};
|
||||
push(@args, "--hostname=" . expand('HOSTNAME'))
|
||||
if ($CONFIG{'HOSTNAME'});
|
||||
push(@args, "--hostname=" . expand('HOSTNAME'));
|
||||
push(@args, "--sandbox=" . expand('SANDBOX'));
|
||||
push(@args, "--arch=$arch");
|
||||
push(@args, "--machine=$machine");
|
||||
@ -355,6 +354,7 @@ MAIN:{
|
||||
$config = `uname -n`;
|
||||
chomp($config);
|
||||
$config =~ s/^(\w+)(\..*)?/$1/;
|
||||
$CONFIG{'HOSTNAME'} = `/usr/bin/uname -n`;
|
||||
if ($ENV{'HOME'} =~ m/^((?:\/[\w\.-]+)+)\/*$/) {
|
||||
$CONFIG{'HOME'} = $1;
|
||||
$etcdir = "$1/etc";
|
||||
|
Loading…
x
Reference in New Issue
Block a user