>> instead of > to db.cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c5231c1c7c
commit
707a9fbcaf
@ -894,7 +894,7 @@ sub FIXUP
|
||||
if (@forwarders)
|
||||
{
|
||||
my $tmpfile = $DBDir . "db.cache";
|
||||
my $cmd = qq~dig @"$forwarders[0]" . ns > $tmpfile~;
|
||||
my $cmd = qq~dig @"$forwarders[0]" . ns >> $tmpfile~;
|
||||
my $outref = xCAT::Utils->runcmd("$cmd", 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
@ -908,14 +908,17 @@ sub FIXUP
|
||||
{
|
||||
my $nothing;
|
||||
open($nothing, ">>", $DBDir . "db.cache");
|
||||
close($nothing);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
my $nothing;
|
||||
open($nothing, ">>", $DBDir . "db.cache");
|
||||
close($nothing);
|
||||
|
||||
}
|
||||
close($nothing);
|
||||
printf $file "%-30s\tIN PTR localhost.\n", &REVERSE("127.0.0.1");
|
||||
close($file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user