fix creation of cfgloc file

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-02-09 17:35:16 +00:00
parent ccddc9616a
commit 6c3745edff
2 changed files with 2 additions and 2 deletions

View File

@ -1601,7 +1601,7 @@ sub createcfgloc
}
my $mysqlentry =
"mysql:dbname=xcatdb;host=$::MN|xcatadmin|$::adminpassword";
$cmd = "echo \"$mysqlentry\" >> $cfglocmysql";
$cmd = "echo \"$mysqlentry\" > $cfglocmysql";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{

View File

@ -840,7 +840,7 @@ sub createcfgloc
}
}
my $pgentry = "Pg:dbname=xcatdb;host=$::MN|xcatadm|$::adminpassword";
$cmd = "echo \"$pgentry\" >> $cfgloc";
$cmd = "echo \"$pgentry\" > $cfgloc";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{