From 0fda051bdcdcc96311c9aa4c5a33620b9f2ae0ea Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 2 Sep 2010 14:49:00 +0000 Subject: [PATCH] fix putting out the no support for SQLite all the time, just put out if processing files git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/runsqlcmd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xCAT-server/sbin/runsqlcmd b/xCAT-server/sbin/runsqlcmd index cd597e329..b98505dc6 100755 --- a/xCAT-server/sbin/runsqlcmd +++ b/xCAT-server/sbin/runsqlcmd @@ -99,11 +99,6 @@ my @sqlfilelist = xCAT::Table->get_filelist($directory, \@filearray, "sql"); # determine database my $xcatcfg = xCAT::Table->get_xcatcfg(); -if ($xcatcfg =~ /^SQLite:/) -{ - xCAT::MsgUtils->message("SE", - "The runsqlcmd does not support the SQLite database."); -} foreach my $file (@sqlfilelist) { if ($xcatcfg =~ /^DB2:/) @@ -121,7 +116,8 @@ foreach my $file (@sqlfilelist) if ($xcatcfg =~ /^SQLite:/) { # not supported but will leave routine in case we change our mind - &runsqlitecmd($file,$xcatcfg); + xCAT::MsgUtils->message("SE", "The runsqlcmd does not support the SQLite database."); + #&runsqlitecmd($file,$xcatcfg); exit 1; }