From 6c3745edffa33d543b4cf2e4f3464fe1039ead9a Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 9 Feb 2011 17:35:16 +0000 Subject: [PATCH] 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 --- xCAT-client/bin/mysqlsetup | 2 +- xCAT-client/bin/pgsqlsetup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/mysqlsetup b/xCAT-client/bin/mysqlsetup index 2ccb49c6a..bd6b2504a 100755 --- a/xCAT-client/bin/mysqlsetup +++ b/xCAT-client/bin/mysqlsetup @@ -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) { diff --git a/xCAT-client/bin/pgsqlsetup b/xCAT-client/bin/pgsqlsetup index c18a664ff..c1d10039e 100755 --- a/xCAT-client/bin/pgsqlsetup +++ b/xCAT-client/bin/pgsqlsetup @@ -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) {