From affaaf090979d19fb1f6bc64237d6830cb341697 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 14 Jul 2009 16:49:21 +0000 Subject: [PATCH] Avoid bogus error messages. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3780 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index dee0bbf91..285eec019 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -649,9 +649,9 @@ if ($::osname eq 'AIX') } } - $cmd = "lssrc -a | grep conserver"; + $cmd = "lssrc -a | grep conserver >/dev/null 2>&1"; $outref = xCAT::Utils->runcmd("$cmd", 0); - unless ($outref =~ /conserver/) + if ($::RUNCMD_RC != 0) { $cmd = "mkssys -p /opt/freeware/sbin/conserver -s conserver -u 0 -S -n 15 -f 15 -a \"-o -O1 -C /etc/conserver.cf\""; @@ -1175,7 +1175,7 @@ if ($::osname eq 'AIX') # check if /install/postscripts is in /etc/exports my $catcmd = - "/bin/cat /etc/exports | grep '/install/postscripts ' >/dev/null 2>&1"; + "/bin/cat /etc/exports 2>&1 | grep '/install/postscripts ' >/dev/null 2>&1"; my $outref = xCAT::Utils->runcmd("$catcmd", -1); if ($::RUNCMD_RC != 0) {