>> 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:
sjing 2010-09-21 01:52:08 +00:00
parent c5231c1c7c
commit 707a9fbcaf

View File

@ -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);
}